Use stdenv.mkDerivation for Therapist wrapper

This commit is contained in:
Morgan Jones 2018-07-15 07:34:26 +00:00
parent 870f05c975
commit 5f1013d875

View File

@ -5,7 +5,9 @@ let
"linux32" else "linux64";
inifile = "linux/v0.${dwarf-fortress.baseVersion}.${dwarf-fortress.patchVersion}_${platformSlug}.ini";
in symlinkJoin {
in
stdenv.mkDerivation rec {
name = "dwarf-therapist-${dwarf-therapist.version}";
wrapper = ./dwarf-therapist.in;
@ -43,4 +45,6 @@ in symlinkJoin {
substitute "$input_file" "$output_file" --replace "$orig_md5" "$patched_md5"
'';
preferLocalBuild = true;
}