nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 48 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 guile, 6 makeWrapper, 7 pkg-config, 8 gash, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "gash-utils"; 13 version = "0.2.0"; 14 15 src = fetchurl { 16 url = "mirror://savannah/gash/gash-utils-${finalAttrs.version}.tar.gz"; 17 hash = "sha256-5qrlpvQP34xfhzD2bD+MMEe94A+M2XWV9arSRElZ1KM="; 18 }; 19 20 strictDeps = true; 21 22 nativeBuildInputs = [ 23 guile # buildPlatform's guile is needed at build time 24 makeWrapper 25 pkg-config 26 ]; 27 28 buildInputs = [ 29 gash 30 guile 31 ]; 32 33 postInstall = '' 34 for f in $out/bin/*; do 35 wrapProgram $f \ 36 --prefix GUILE_LOAD_PATH : "$out/${guile.siteDir}:$GUILE_LOAD_PATH" \ 37 --prefix GUILE_LOAD_COMPILED_PATH : "$out/${guile.siteCcacheDir}:$GUILE_LOAD_COMPILED_PATH" 38 done 39 ''; 40 41 meta = with lib; { 42 description = "Core POSIX utilities written in Guile Scheme"; 43 homepage = "https://savannah.nongnu.org/projects/gash/"; 44 license = licenses.gpl3Plus; 45 maintainers = with maintainers; [ wegank ]; 46 platforms = platforms.all; 47 }; 48})