50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, gtk4-layer-shell
|
|
, gtkmm4
|
|
, pkg-config
|
|
, nix-update-script
|
|
, wireplumber
|
|
, wrapGAppsHook4
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "sysvol";
|
|
version = "0-unstable-2024-06-13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "System64fumo";
|
|
repo = "sysvol";
|
|
rev = "af882d40df7c6e1a0ec415d934f643933f455b5a";
|
|
hash = "sha256-3gB1u7fEi7EB+FWZKS8ddJ53RC5Chyw3fTBX8Z0Itis=";
|
|
};
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace-fail 'pkg-config' ''${PKG_CONFIG}
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wrapGAppsHook4 #< to plumb `GDK_PIXBUF_MODULE_FILE` through, and get not-blurry icons
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk4-layer-shell
|
|
gtkmm4
|
|
wireplumber
|
|
];
|
|
|
|
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [ "--version" "branch" ];
|
|
};
|
|
|
|
meta = {
|
|
description = "A basic GTK4 volume indicator";
|
|
homepage = "https://github.com/System64fumo/sysvol";
|
|
mainProgram = "sysvol";
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ colinsane ];
|
|
};
|
|
}
|