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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user