nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 cmake, 7}: 8stdenv.mkDerivation (finalAttrs: { 9 pname = "acc"; 10 version = "1.60"; 11 12 src = fetchFromGitHub { 13 owner = "zdoom"; 14 repo = "acc"; 15 rev = finalAttrs.version; 16 hash = "sha256-HGF4O4LcMDY4f/ZuBbkvx5Wd86+8Ict624eKTJ88/rQ="; 17 }; 18 19 patches = [ 20 # Don't force static builds 21 ./disable-static.patch 22 (fetchpatch { 23 name = "cmake-fix-1"; 24 url = "https://github.com/ZDoom/acc/commit/a0e7d2437c7f66a2b973537c2e854e2b91cd9c4c.patch"; 25 hash = "sha256-n+YctiUFYbv6u3ixB5wTsT8KBmearECoUtC74OpoG6c="; 26 }) 27 (fetchpatch { 28 name = "cmake-fix-2"; 29 url = "https://github.com/ZDoom/acc/commit/df6a2735acccad9131ce73fa07506445cfe69ec2.patch"; 30 hash = "sha256-DFMxZ8/Shv+tBSPXdhaPI1iTi1fbng/IMO//0Jk4Lk4="; 31 }) 32 ]; 33 34 nativeBuildInputs = [ cmake ]; 35 36 installPhase = '' 37 runHook preInstall 38 39 install -D acc $out/bin/acc 40 41 runHook postInstall 42 ''; 43 44 meta = { 45 description = "ACS script compiler for use with ZDoom and Hexen"; 46 homepage = "https://zdoom.org/wiki/ACC"; 47 license = lib.licenses.activision; 48 maintainers = with lib.maintainers; [ emilytrau ]; 49 platforms = lib.platforms.all; 50 mainProgram = "acc"; 51 }; 52})