katriawm: fix cross compilation and minor improvement

This commit is contained in:
Nick Cao 2023-09-22 13:44:39 -04:00 committed by Anderson Torres
parent 8ad2a44a5c
commit ef8d674c3d

View file

@ -16,8 +16,6 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-IWviLboZz421/Amz/QG4o8jYaG8Y/l5PvmvXfK5nzJE=";
};
sourceRoot = "${finalAttrs.src.name}/src";
nativeBuildInputs = [
pkg-config
];
@ -32,8 +30,15 @@ stdenv.mkDerivation (finalAttrs: {
strictDeps = true;
makeFlags = [ "-C" "src" ];
installFlags = [ "prefix=$(out)" ];
postPatch = ''
substituteInPlace src/config.mk \
--replace pkg-config "$PKG_CONFIG"
'';
meta = {
homepage = "https://www.uninformativ.de/git/katriawm/file/README.html";
description = "A non-reparenting, dynamic window manager with decorations";