depot/third_party/nixpkgs/pkgs/by-name/ga/gash-utils/package.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

47 lines
1 KiB
Nix

{ lib
, stdenv
, fetchurl
, guile
, makeWrapper
, pkg-config
, gash
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gash-utils";
version = "0.2.0";
src = fetchurl {
url = "mirror://savannah/gash/gash-utils-${finalAttrs.version}.tar.gz";
hash = "sha256-5qrlpvQP34xfhzD2bD+MMEe94A+M2XWV9arSRElZ1KM=";
};
strictDeps = true;
nativeBuildInputs = [
guile # buildPlatform's guile is needed at build time
makeWrapper
pkg-config
];
buildInputs = [
gash
guile
];
postInstall = ''
for f in $out/bin/*; do
wrapProgram $f \
--prefix GUILE_LOAD_PATH : "$out/${guile.siteDir}:$GUILE_LOAD_PATH" \
--prefix GUILE_LOAD_COMPILED_PATH : "$out/${guile.siteCcacheDir}:$GUILE_LOAD_COMPILED_PATH"
done
'';
meta = with lib; {
description = "Core POSIX utilities written in Guile Scheme";
homepage = "https://savannah.nongnu.org/projects/gash/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ wegank ];
platforms = platforms.all;
};
})