blob: d6949ff15f54f16c8f47445ccc5785f398063542 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ lib, rustPlatform, fetchFromGitHub, pkgconfig, dbus, libpulseaudio, alsaLib, 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 = "0lryc48wdyz6fmlhgsxgqc0pvv8c85dhq5y8rbhmw1p3kzvj8w0k";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ dbus libpulseaudio alsaLib ];
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;
};
}
|