nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 37 lines 772 B view raw
1{ lib, stdenv 2, fetchFromGitHub 3, ncurses 4, SDL 5}: 6 7stdenv.mkDerivation rec { 8 pname = "curseofwar"; 9 version = "1.3.0"; 10 11 src = fetchFromGitHub { 12 owner = "a-nikolaev"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"; 16 }; 17 18 buildInputs = [ 19 ncurses 20 SDL 21 ]; 22 23 makeFlags = (lib.optionals (SDL != null) [ "SDL=yes" ]) ++ [ 24 "PREFIX=$(out)" 25 # force platform's cc on darwin, otherwise gcc is used 26 "CC=${stdenv.cc.targetPrefix}cc" 27 ]; 28 29 meta = with lib; { 30 description = "A fast-paced action strategy game"; 31 homepage = "https://a-nikolaev.github.io/curseofwar/"; 32 license = licenses.gpl3; 33 maintainers = with maintainers; [ fgaz ]; 34 platforms = platforms.all; 35 }; 36} 37