syshud: 0-unstable-2024-07-15 -> 0-unstable-2024-07-16

this fixes the crash-on-start issue
This commit is contained in:
2024-07-18 09:51:27 +00:00
parent 2296e10f15
commit c8a99317bc

View File

@@ -7,15 +7,15 @@
, wireplumber , wireplumber
, wrapGAppsHook4 , wrapGAppsHook4
}: }:
stdenv.mkDerivation { stdenv.mkDerivation (finalAttrs: {
pname = "syshud"; pname = "syshud";
version = "0-unstable-2024-07-15"; version = "0-unstable-2024-07-16";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "System64fumo"; owner = "System64fumo";
repo = "syshud"; repo = "syshud";
rev = "bb4d8157ebb191d1b116d640c486762b4d697dff"; rev = "d60c3bb6c8eefba743478fe7c183055fa057e69e";
hash = "sha256-KiySPiFKH3R65fgNYWlxrr/oOTNH1/JEGkyuP2MA6Lg="; hash = "sha256-2aVqCXUZYGtv6xIqbZ1yk3SZK45igZVgPl0byxTXu8E=";
}; };
postPatch = '' postPatch = ''
substituteInPlace Makefile \ substituteInPlace Makefile \
@@ -33,7 +33,24 @@ stdenv.mkDerivation {
wireplumber wireplumber
]; ];
makeFlags = [ "DESTDIR=${placeholder "out"}" ]; makeFlags = [
"DESTDIR=${placeholder "out"}"
];
# populate version info used by `syshud -v`:
configurePhase = ''
runHook preConfigure
echo '#define GIT_COMMIT_MESSAGE "${finalAttrs.src.rev}"' >> src/git_info.hpp
echo '#define GIT_COMMIT_DATE "${lib.removePrefix "0-unstable-" finalAttrs.version}"' >> src/git_info.hpp
runHook postConfigure
'';
# syshud manually `dlopen`'s its library component
postInstall = ''
wrapProgram $out/bin/syshud --prefix LD_LIBRARY_PATH : $out/lib
'';
passthru.updateScript = nix-update-script { passthru.updateScript = nix-update-script {
extraArgs = [ "--version" "branch" ]; extraArgs = [ "--version" "branch" ];
@@ -46,4 +63,4 @@ stdenv.mkDerivation {
platforms = lib.platforms.linux; platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ colinsane ]; maintainers = with lib.maintainers; [ colinsane ];
}; };
} })