diff options
author | Ethan Edwards <ethan@ethancedwards.com> | 2021-06-12 00:43:42 -0400 |
---|---|---|
committer | Ethan Edwards <ethan@ethancedwards.com> | 2021-06-12 01:18:03 -0400 |
commit | 0dd23e26108575c48c46ba994b6a4aaa92904b60 (patch) | |
tree | bfb45c95497ab27b11144a4481e1665e1c4cac76 /pkgs/development/guile-modules | |
parent | 74c602f2115904a9d3facfe6d84beda4926e7f30 (diff) |
guile-git: init at 0.3.0
Diffstat (limited to 'pkgs/development/guile-modules')
-rw-r--r-- | pkgs/development/guile-modules/guile-git/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/guile-modules/guile-git/default.nix b/pkgs/development/guile-modules/guile-git/default.nix new file mode 100644 index 0000000000000..f337eefecb2f6 --- /dev/null +++ b/pkgs/development/guile-modules/guile-git/default.nix @@ -0,0 +1,48 @@ +{ lib +, stdenv +, fetchFromGitLab +, guile +, libgit2 +, scheme-bytestructures +, autoreconfHook +, pkg-config +, texinfo +}: + +stdenv.mkDerivation rec { + pname = "guile-git"; + version = "0.3.0"; + + src = fetchFromGitLab { + owner = "guile-git"; + repo = pname; + rev = "v${version}"; + sha256 = "1s77s70gzfj6h7bglq431kw8l4iknhsfpc0mnvcp4lkhwdcgyn1n"; + }; + + postConfigure = '' + sed -i '/moddir\s*=/s%=.*%=''${out}/share/guile/site%' Makefile; + sed -i '/godir\s*=/s%=.*%=''${out}/share/guile/ccache%' Makefile; + ''; + + nativeBuildInputs = [ + autoreconfHook pkg-config texinfo + ]; + buildInputs = [ + guile + ]; + propagatedBuildInputs = [ + libgit2 scheme-bytestructures + ]; + + enableParallelBuilding = true; + + meta = with lib; { + description = "Bindings to Libgit2 for GNU Guile"; + homepage = "https://gitlab.com/guile-git/guile-git"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ ethancedwards8 ]; + platforms = platforms.linux; + }; +} + |