mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
40 lines
791 B
Nix
40 lines
791 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "acc";
|
|
version = "1.60";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zdoom";
|
|
repo = "acc";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-HGF4O4LcMDY4f/ZuBbkvx5Wd86+8Ict624eKTJ88/rQ=";
|
|
};
|
|
|
|
patches = [
|
|
# Don't force static builds
|
|
./disable-static.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D acc $out/bin/acc
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "ACS script compiler for use with ZDoom and Hexen";
|
|
homepage = "https://zdoom.org/wiki/ACC";
|
|
license = licenses.activision;
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
platforms = platforms.all;
|
|
mainProgram = "acc";
|
|
};
|
|
})
|