neofetch: fix cross-compilation
Needs the shebang patched to run under the host bash interpreter rather than the build bash interpreter.
This commit is contained in:
parent
bf11a28bd3
commit
551815a457
|
@ -1,6 +1,6 @@
|
||||||
{ lib, stdenv, fetchFromGitHub }:
|
{ lib, stdenvNoCC, fetchFromGitHub, bash }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "neofetch";
|
pname = "neofetch";
|
||||||
version = "7.1.0";
|
version = "7.1.0";
|
||||||
|
|
||||||
|
@ -11,7 +11,11 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0i7wpisipwzk0j62pzaigbiq42y1mn4sbraz4my2jlz6ahwf00kv";
|
sha256 = "0i7wpisipwzk0j62pzaigbiq42y1mn4sbraz4my2jlz6ahwf00kv";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontBuild = true;
|
strictDeps = true;
|
||||||
|
buildInputs = [ bash ];
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs --host neofetch
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"PREFIX=${placeholder "out"}"
|
"PREFIX=${placeholder "out"}"
|
||||||
|
|
Loading…
Reference in a new issue