summaryrefslogtreecommitdiffstats
path: root/pkgs/wldash/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/wldash/default.nix')
-rw-r--r--pkgs/wldash/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/wldash/default.nix b/pkgs/wldash/default.nix
new file mode 100644
index 0000000..4f92fb9
--- /dev/null
+++ b/pkgs/wldash/default.nix
@@ -0,0 +1,37 @@
+{ lib, rustPlatform, fetchFromGitHub, pkgconfig, dbus, libpulseaudio, libxkbcommon, wayland }:
+
+let
+ metadata = import ./metadata.nix;
+ libraryPath = lib.makeLibraryPath [ wayland libxkbcommon ];
+in
+rustPlatform.buildRustPackage rec {
+ name = "wldash-${version}";
+ version = metadata.rev;
+
+ src = fetchFromGitHub {
+ owner = "kennylevinsen";
+ repo = "wldash";
+ rev = metadata.rev;
+ sha256 = metadata.sha256;
+ };
+
+ cargoSha256 = "11068w763pv2f1a7zcpdwb7s9skvvknxxngnmz71haiw07h5jjiz";
+
+ nativeBuildInputs = [ pkgconfig ];
+
+ buildInputs = [ dbus libpulseaudio ];
+
+ dontPatchELF = true;
+
+ postInstall = ''
+ patchelf --set-rpath ${libraryPath}:$(patchelf --print-rpath $out/bin/wldash) $out/bin/wldash
+ '';
+
+ meta = with lib; {
+ description = "Wayland launcher/dashboard";
+ homepage = "https://wldash.org";
+ licence = licenses.gpl3;
+ maintainers = with maintainers; [ alexarice ];
+ platforms = platforms.linux;
+ };
+}