3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/guile-modules/guile-json/default.nix

40 lines
967 B
Nix
Raw Normal View History

2021-06-12 06:11:21 +01:00
{ lib
, stdenv
, fetchurl
, guile
, texinfo
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "guile-json";
2021-06-21 01:14:46 +01:00
version = "4.5.2";
2021-06-12 06:11:21 +01:00
src = fetchurl {
url = "mirror://savannah/guile-json/${pname}-${version}.tar.gz";
2021-06-21 01:14:46 +01:00
sha256 = "GrBG7DaxxEwEGsJ1Vo2Bh4TXH6uaXZX5Eoz+iiUFGTM=";
2021-06-12 06:11:21 +01:00
};
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;
};
}