diff options
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"; +  }; +}) | 
