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
41 lines
774 B
Nix
41 lines
774 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
SDL2,
|
|
perl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dethrace";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dethrace-labs";
|
|
repo = "dethrace";
|
|
tag = "v${version}";
|
|
hash = "sha256-+C3NyRLmvXrkZuhLGwIIHFWjXLMpt3srLZCVrxRUlkA=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
buildInputs = [ SDL2 ];
|
|
nativeBuildInputs = [
|
|
cmake
|
|
perl
|
|
];
|
|
|
|
installPhase = ''
|
|
install -Dm755 dethrace $out/bin/dethrace
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://twitter.com/dethrace_labs";
|
|
description = "Reverse engineering the 1997 game Carmageddon";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ astro ];
|
|
mainProgram = "dethrace";
|
|
};
|
|
}
|