diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-10 08:57:51 +0530 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-10 08:57:51 +0530 | 
| commit | f9342d23a46f2a5e558810404b0dfa0732bd71b3 (patch) | |
| tree | c4170b6765d2e217a311be162f60baee9596dc1d /packages/dwlb.nix | |
| parent | d5cc9670dfca394b8f3367921eff0f2806841ff3 (diff) | |
update
Diffstat (limited to 'packages/dwlb.nix')
| -rw-r--r-- | packages/dwlb.nix | 58 | 
1 files changed, 58 insertions, 0 deletions
| diff --git a/packages/dwlb.nix b/packages/dwlb.nix new file mode 100644 index 0000000..08dc7c6 --- /dev/null +++ b/packages/dwlb.nix @@ -0,0 +1,58 @@ +{ lib +, stdenv +, fetchFromGitHub +, installShellFiles +, wayland-scanner +, wayland +, wayland-protocols +, pixman +, fcft +, pkg-config +, writeText +}: + +stdenv.mkDerivation (finalAttrs: { +  pname = "dwlb"; +  version = "git"; + +  src = fetchFromGitHub { +    owner = "compromyse"; +    repo = "dwlb"; +    rev = "master"; +    hash = "sha256-cz3yqughpLdFZY3vIXvkKGVoC4ZrTzZQhaJWQ8XB3kQ="; +  }; + +  nativeBuildInputs = [ +    installShellFiles +    pkg-config +    wayland-scanner +  ]; + +  buildInputs = [ +    pixman +    wayland +    wayland-protocols +    fcft +  ]; + +  outputs = [ "out" "man" ]; + +  makeFlags = [ +    "PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config" +    "WAYLAND_SCANNER=wayland-scanner" +    "PREFIX=$(out)" +    "MANDIR=$(man)/share/man" +  ]; + +  meta = { +    homepage = "https://github.com/compromyse/dwlb/"; +    description = "Dynamic window manager for Wayland"; +    longDescription = '' +      Feature-Complete Bar for DWL +    ''; +    changelog = "https://github.com/compromyse/dwlb/"; +    license = lib.licenses.gpl3Only; +    inherit (wayland.meta) platforms; +    mainProgram = "dwlb"; +  }; +}) | 
