Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 46 lines 1.1 kB view raw
1{ 2 lib, 3 callPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 pkgs, 7 wrapCDDA, 8 attachPkgs, 9 tiles ? true, 10 debug ? false, 11 useXdgDir ? false, 12}: 13 14let 15 common = callPackage ./common.nix { 16 inherit tiles debug useXdgDir; 17 }; 18 19 self = common.overrideAttrs (common: rec { 20 version = "0.H"; 21 22 src = fetchFromGitHub { 23 owner = "CleverRaven"; 24 repo = "Cataclysm-DDA"; 25 tag = "${version}-RELEASE"; 26 sha256 = "sha256-ZCD5qgqYSX7sS+Tc1oNYq9soYwNUUuWamY2uXfLjGoY="; 27 }; 28 29 patches = [ 30 # fix compilation of the vendored flatbuffers under gcc14 31 (fetchpatch { 32 name = "fix-flatbuffers-with-gcc14"; 33 url = "https://github.com/CleverRaven/Cataclysm-DDA/commit/1400b1018ff37196bd24ba4365bd50beb571ac14.patch"; 34 hash = "sha256-H0jct6lSQxu48eOZ4f8HICxo89qX49Ksw+Xwwtp7iFM="; 35 }) 36 # Unconditionally look for translation files in $out/share/locale 37 ./locale-path.patch 38 ]; 39 40 meta = common.meta // { 41 changelog = "https://github.com/CleverRaven/Cataclysm-DDA/blob/${version}/data/changelog.txt"; 42 }; 43 }); 44in 45 46attachPkgs pkgs self