@@ -1,29 +1,34 @@
1−{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, qmake, texlive }:
1+{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, cmake, texlive, ninja }:
22
33stdenv.mkDerivation rec {
44 name = "dwarf-therapist-original-${version}";
5− version = "37.0.0";
5+ version = "37.0.0-Hello71";
66
77 src = fetchFromGitHub {
8− owner = "splintermind";
8+ ## We use `Hello71`'s fork for 43.05 support
9+ # owner = "splintermind";
10+ owner = "Hello71";
911 repo = "Dwarf-Therapist";
10− rev = "v${version}";
11− sha256 = "0dw86b4x5hjhb7h4ynvwjgcinpqywfc5l48ljb5sahz08rfnx63d";
12+ rev = "42ccaa71f6077ebdd41543255a360c3470812b97";
13+ sha256 = "0f6mlfck7q31jl5cb6d6blf5sb7cigvvs2rn31k16xc93hsdgxaz";
1214 };
1315
1416 outputs = [ "out" "layouts" ];
1517 buildInputs = [ qtbase qtdeclarative ];
16− nativeBuildInputs = [ texlive qmake ];
18+ nativeBuildInputs = [ texlive cmake ninja ];
1719
18− enableParallelBuilding = false;
20+ configurePhase = ''
21+ cmake -GNinja
22+ '';
23+
24+ buildPhase = ''
25+ ninja -j$NIX_BUILD_CORES
26+ '';
1927
20− # Move layout files so they cannot be found by Therapist
21− postInstall = ''
22− mkdir -p $layouts
23− mv $out/share/dwarftherapist/memory_layouts/* $layouts
24− rmdir $out/share/dwarftherapist/memory_layouts
25− # Useless symlink
26− rm $out/bin/dwarftherapist
28+ installPhase = ''
29+ mkdir -p $out/bin
30+ cp ./DwarfTherapist $out/bin/DwarfTherapist
31+ cp -r ./share/memory_layouts $layouts
2732 '';
2833
2934 meta = with stdenv.lib; {