hyprpaper: fix hardcoded bash link (#379851)

Closes https://github.com/NixOS/nixpkgs/issues/379770

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
Masum Reza
2025-02-07 00:39:19 +05:30
committed by GitHub
parent a1935503b7
commit 741083e980
+11 -5
View File
@@ -4,6 +4,7 @@
fetchFromGitHub,
cmake,
cairo,
bash,
expat,
file,
fribidi,
@@ -41,6 +42,15 @@ gcc14Stdenv.mkDerivation (finalAttrs: {
hash = "sha256-pmkJCzjflvsOytiu2mgn2wfSeyL6mTfoi214T4A2OZQ=";
};
prePatch = ''
substituteInPlace src/main.cpp \
--replace-fail GIT_COMMIT_HASH '"${finalAttrs.src.rev}"'
'';
postPatch = ''
substituteInPlace src/helpers/MiscFunctions.cpp \
--replace-fail '/bin/bash' '${bash}/bin/bash'
'';
nativeBuildInputs = [
cmake
pkg-config
@@ -50,6 +60,7 @@ gcc14Stdenv.mkDerivation (finalAttrs: {
buildInputs = [
cairo
bash
expat
file
fribidi
@@ -73,11 +84,6 @@ gcc14Stdenv.mkDerivation (finalAttrs: {
hyprgraphics
];
prePatch = ''
substituteInPlace src/main.cpp \
--replace-fail GIT_COMMIT_HASH '"${finalAttrs.src.rev}"'
'';
meta = with lib; {
inherit (finalAttrs.src.meta) homepage;
description = "Blazing fast wayland wallpaper utility";