it finally happened

This commit is contained in:
atagen 2023-04-19 16:41:56 +10:00
parent 2ea78bdd47
commit 56d55e1659
190 changed files with 843 additions and 9368 deletions

24
pkgs/swayosd.nix Executable file
View file

@ -0,0 +1,24 @@
{ 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;
}