15 stdenv.mkDerivation (finalAttrs: {
17 version = "0-unstable-2024-09-26";
19 src = fetchFromGitHub {
20 owner = "System64fumo";
22 rev = "0b6e4958d8ea66b54bc67f0b5aa005fa3eaa4f6f";
23 hash = "sha256-cyE7ZxesAmnepW7kI6b9Gp7R/v+yG2//EQAj4/X6c+c=";
27 substituteInPlace Makefile \
28 --replace-fail 'pkg-config' ''${PKG_CONFIG}
45 "DESTDIR=${placeholder "out"}"
49 # populate version info used by `syshud -v`:
53 echo '#define GIT_COMMIT_MESSAGE "${finalAttrs.src.rev}"' >> src/git_info.hpp
54 echo '#define GIT_COMMIT_DATE "${lib.removePrefix "0-unstable-" finalAttrs.version}"' >> src/git_info.hpp
59 # syshud manually `dlopen`'s its library component
61 wrapProgram $out/bin/syshud --prefix LD_LIBRARY_PATH : $out/lib
64 passthru.updateScript = nix-update-script {
72 description = "simple heads up display written in gtkmm 4";
73 mainProgram = "syshud";
74 homepage = "https://github.com/System64fumo/syshud";
75 license = lib.licenses.wtfpl;
76 platforms = lib.platforms.linux;
77 maintainers = with lib.maintainers; [ colinsane ];