spectrwm: use sourceRoot

This commit is contained in:
Acid Bong 2025-06-01 12:58:34 +03:00
parent 483cf0f894
commit 3900ae5556
No known key found for this signature in database

View file

@ -36,11 +36,7 @@ stdenv.mkDerivation (finalAttrs: {
libbsd
];
prePatch =
let
subdir = if stdenv.hostPlatform.isDarwin then "osx" else "linux";
in
"cd ${subdir}";
sourceRoot = finalAttrs.src.name + (if stdenv.hostPlatform.isDarwin then "/osx" else "/linux");
makeFlags = [ "PREFIX=${placeholder "out"}" ];