2022-12-16 00:47:11 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchzip
|
|
|
|
, libX11
|
|
|
|
, libXft
|
|
|
|
, libXrandr
|
|
|
|
, pkg-config
|
|
|
|
}:
|
|
|
|
|
2023-04-16 22:48:25 +02:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-12-16 00:47:11 +01:00
|
|
|
pname = "katriawm";
|
2023-09-17 01:45:53 +02:00
|
|
|
version = "23.08";
|
2022-12-16 00:47:11 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
2023-04-16 22:48:25 +02:00
|
|
|
url = "https://www.uninformativ.de/git/katriawm/archives/katriawm-v${finalAttrs.version}.tar.gz";
|
2023-09-17 01:45:53 +02:00
|
|
|
hash = "sha256-IWviLboZz421/Amz/QG4o8jYaG8Y/l5PvmvXfK5nzJE=";
|
2022-12-16 00:47:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXft
|
|
|
|
libXrandr
|
|
|
|
];
|
|
|
|
|
2023-09-17 01:45:53 +02:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2022-12-16 00:47:11 +01:00
|
|
|
|
2023-09-22 19:44:39 +02:00
|
|
|
makeFlags = [ "-C" "src" ];
|
|
|
|
|
2022-12-16 00:47:11 +01:00
|
|
|
installFlags = [ "prefix=$(out)" ];
|
|
|
|
|
2023-09-22 19:44:39 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/config.mk \
|
|
|
|
--replace pkg-config "$PKG_CONFIG"
|
|
|
|
'';
|
|
|
|
|
2023-02-12 22:08:57 +01:00
|
|
|
meta = {
|
2022-12-16 00:47:11 +01:00
|
|
|
homepage = "https://www.uninformativ.de/git/katriawm/file/README.html";
|
|
|
|
description = "A non-reparenting, dynamic window manager with decorations";
|
2023-02-12 22:08:57 +01:00
|
|
|
license = lib.licenses.mit;
|
2023-09-17 01:45:53 +02:00
|
|
|
mainProgram = "katriawm";
|
2023-02-12 22:08:57 +01:00
|
|
|
maintainers = [ lib.maintainers.AndersonTorres ];
|
2022-12-16 00:47:11 +01:00
|
|
|
inherit (libX11.meta) platforms;
|
|
|
|
};
|
|
|
|
})
|