29 lines
631 B
Nix
Executable file
29 lines
631 B
Nix
Executable file
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
pkg-config,
|
|
gtk3,
|
|
gtk-layer-shell,
|
|
libpulseaudio,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "SwayOSD";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ErikReider";
|
|
repo = pname;
|
|
rev = "9f294d8f4713eb210e9aad3dee83de32090e4784";
|
|
sha256 = "sha256-3K8LlX4MrG523BwD4nZOcXgSxsnYRxxU5gCOp7rCOCY=";
|
|
};
|
|
|
|
nativeBuildInputs = [pkg-config];
|
|
buildInputs = [gtk3 gtk-layer-shell libpulseaudio];
|
|
cargoLock.lockFileContents = builtins.readFile ./swayosd.lock;
|
|
postPatch = ''
|
|
cp ${./swayosd.lock} Cargo.lock
|
|
'';
|
|
|
|
cargoSha256 = lib.fakeSha256;
|
|
}
|