blob: b6455a0d44f550e8d6681b069b89409f4f43ed64 (
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 = "0pcxv9c7zjzf9m4cx6lsfbn5mb3i5sc4f4c1s6mdpffqld080j19";
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;
};
}
|