Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
1005 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation {
pname = "blocksruntime";
version = "0-unstable-2017-10-28";
src = fetchFromGitHub {
owner = "mackyle";
repo = "blocksruntime";
rev = "9cc93ae2b58676c23fd02cf0c686fa15b7a3ff81";
sha256 = "sha256-pQMNZBgkF4uADOVCWXB5J3qQt8JMe8vo6ZmbtSVA5Xo=";
};
buildPhase = ''
runHook preBuild
./buildlib ${lib.optionalString (!stdenv.hostPlatform.isStatic) "-shared"}
runHook postBuild
'';
installPhase = ''
runHook preInstall
prefix="/" DESTDIR=$out ./installlib ${
if stdenv.hostPlatform.isStatic then "-static" else "-shared"
}
runHook postInstall
'';
checkPhase = ''
runHook preCheck
./checktests
runHook postCheck
'';
doCheck = false; # hasdescriptor.c test fails, hrm.
meta = with lib; {
description = "Installs the BlocksRuntime library from the compiler-rt";
homepage = "https://github.com/mackyle/blocksruntime";
license = licenses.mit;
};
}