-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c8871a
commit 316d7e2
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters