depot/third_party/nixpkgs/pkgs/applications/window-managers/dk/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

45 lines
965 B
Nix

{ lib
, stdenv
, fetchFromBitbucket
, xcbutil
, xcbutilkeysyms
, xcbutilwm
, xcb-util-cursor
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dk";
version = "2.2";
src = fetchFromBitbucket {
owner = "natemaia";
repo = "dk";
rev = "v${finalAttrs.version}";
hash = "sha256-u1fZTcfGLwKFeRADU55MFYDvtSOaOg5qtWB90xYpVuY=";
};
buildInputs = [
xcbutil
xcbutilkeysyms
xcbutilwm
xcb-util-cursor
];
postPatch = ''
substituteInPlace Makefile \
--replace "-L/usr/X11R6/lib" "" \
--replace "-I/usr/X11R6/include" ""
'';
makeFlags = [ "PREFIX=$(out)" "SES=$(out)/share/xsessions" ];
enableParallelBuilding = true;
meta = {
homepage = "https://bitbucket.org/natemaia/dk";
description = "List based tiling window manager in the vein of dwm, bspwm, and xmonad";
license = lib.licenses.x11;
maintainers = with lib.maintainers; [ _3JlOy-PYCCKUi ];
platforms = lib.platforms.linux;
};
})