1 { stdenvNoCC, lib, type }:
9 { modName, version, src, ... } @ args:
11 stdenvNoCC.mkDerivation (args // rec {
12 pname = args.pname or "cataclysm-dda-${type}-${modName}";
14 modRoot = args.modRoot or ".";
16 configurePhase = args.configurePhase or ''
21 buildPhase = args.buildPhase or ''
26 checkPhase = args.checkPhase or ''
37 in args.installPhase or ''
39 destdir="$out/share/cataclysm-dda/${baseDir}"
41 cp -R "${modRoot}" "$destdir/${modName}"
47 forCurses = type == "mod";