Skip to content

Commit

Permalink
guile-json: init at 4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ethancedwards8 committed Jun 18, 2021
1 parent 2c8871a commit 316d7e2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pkgs/development/guile-modules/guile-json/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ lib
, stdenv
, fetchurl
, guile
, texinfo
, pkg-config
}:

stdenv.mkDerivation rec {
pname = "guile-json";
version = "4.4.1";

src = fetchurl {
url = "mirror://savannah/guile-json/${pname}-${version}.tar.gz";
sha256 = "sha256-UqZt3pqXQzeHpzEiMvOMKSh1gK/K2KaJ70jMllNxBPc=";
};

postConfigure = ''
sed -i '/moddir\s*=/s%=.*%=''${out}/share/guile/site%' Makefile;
sed -i '/objdir\s*=/s%=.*%=''${out}/share/guile/ccache%' Makefile;
sed -i '/moddir\s*=/s%=.*%=''${out}/share/guile/site/json%' json/Makefile;
sed -i '/objdir\s*=/s%=.*%=''${out}/share/guile/ccache/json%' json/Makefile;
'';

nativeBuildInputs = [
pkg-config texinfo
];
buildInputs = [
guile
];

meta = with lib; {
description = "JSON Bindings for GNU Guile";
homepage = "https://savannah.nongnu.org/projects/guile-json";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ethancedwards8 ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12657,6 +12657,8 @@ in
inherit (gnome2) gnome_vfs libglade libgnome libgnomecanvas libgnomeui;
};

guile-json = callPackage ../development/guile-modules/guile-json { };

guile-lib = callPackage ../development/guile-modules/guile-lib { };

guile-ncurses = callPackage ../development/guile-modules/guile-ncurses { };
Expand Down

0 comments on commit 316d7e2

Please sign in to comment.