depot/third_party/nixpkgs/pkgs/by-name/ka/katriawm/package.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

50 lines
1,003 B
Nix

{ lib
, stdenv
, fetchzip
, libX11
, libXft
, libXrandr
, pkg-config
}:
stdenv.mkDerivation (finalAttrs: {
pname = "katriawm";
version = "23.08";
src = fetchzip {
url = "https://www.uninformativ.de/git/katriawm/archives/katriawm-v${finalAttrs.version}.tar.gz";
hash = "sha256-IWviLboZz421/Amz/QG4o8jYaG8Y/l5PvmvXfK5nzJE=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libX11
libXft
libXrandr
];
outputs = [ "out" "man" ];
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";
license = lib.licenses.mit;
mainProgram = "katriawm";
maintainers = [ lib.maintainers.AndersonTorres ];
inherit (libX11.meta) platforms;
};
})