sysvol: 0-unstable-2024-04-11 -> 0-unstable-2024-06-07

This commit is contained in:
Colin 2024-06-08 20:11:07 +00:00
parent c4c5a640ce
commit 4d74c2ede6

View File

@ -3,44 +3,37 @@
, gtk4-layer-shell
, gtkmm4
, pkg-config
, pulseaudio
, nix-update-script
, wireplumber
, wrapGAppsHook4
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sysvol";
version = "0-unstable-2024-04-11";
version = "0-unstable-2024-06-07";
src = fetchFromGitHub {
owner = "System64fumo";
repo = "sysvol";
rev = "a26809de285ee194436bc55ef701476765c5b15e";
hash = "sha256-WiFm5SRQV2up9EBCR9oF0p9F+DQHDQZhxsaUuvpbMw8=";
rev = "56d7dcda4b246e71b2c6d29cbb2315bddf446032";
hash = "sha256-WOcy2R0El1vl57Zimb7Hoh9XYTnH/zJS1n+gcaTU4V8=";
};
postPatch = let
# i don't know how else to escape this
var = v: lib.concatStrings [ "$" "{" v "}" ];
in ''
postPatch = ''
substituteInPlace Makefile \
--replace-fail 'pkg-config' '${var "PKG_CONFIG"}' \
--replace-fail 'g++' '${var "CXX"}' \
--replace-fail 'strip sysvol' ""
--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
pulseaudio
wireplumber
];
installPhase = ''
mkdir -p $out/bin
install -m755 sysvol $out/bin/sysvol
'';
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version" "branch" ];