depot/third_party/nixpkgs/pkgs/development/tools/guile/guile-hall/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

48 lines
1.3 KiB
Nix

{ lib, stdenv, fetchFromGitLab, autoreconfHook, pkg-config
, texinfo, makeWrapper, guile, guile-config }:
stdenv.mkDerivation rec {
pname = "guile-hall";
version = "0.4.1";
src = fetchFromGitLab {
owner = "a-sassmannshausen";
repo = "guile-hall";
rev = version;
hash = "sha256-TUCN8kW44X6iGbSJURurcz/Tc2eCH1xgmXH1sMOMOXs=";
};
nativeBuildInputs = [ autoreconfHook pkg-config texinfo makeWrapper ];
buildInputs = [ guile guile-config ];
enableParallelBuilding = true;
doCheck = true;
postInstall =
let
guileVersion = lib.versions.majorMinor guile.version;
in
''
wrapProgram $out/bin/hall \
--prefix GUILE_LOAD_PATH : "$out/share/guile/site/${guileVersion}:$GUILE_LOAD_PATH" \
--prefix GUILE_LOAD_COMPILED_PATH : "$out/lib/guile/${guileVersion}/site-ccache:$GUILE_LOAD_COMPILED_PATH"
'';
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
export HOME=$TMPDIR
$out/bin/hall --version | grep ${version} > /dev/null
runHook postInstallCheck
'';
meta = with lib; {
description = "Project manager and build tool for GNU guile";
homepage = "https://gitlab.com/a-sassmannshausen/guile-hall";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ sikmir ];
platforms = guile.meta.platforms;
};
}