Merge pull request #113373 from siraben/neofetch-xcompile

neofetch: fix cross-compilation
This commit is contained in:
Sandro 2021-02-17 12:53:49 +01:00 committed by GitHub
commit 894829379c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub }:
{ lib, stdenvNoCC, fetchFromGitHub, bash }:
stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "neofetch";
version = "7.1.0";
@ -11,7 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "0i7wpisipwzk0j62pzaigbiq42y1mn4sbraz4my2jlz6ahwf00kv";
};
dontBuild = true;
strictDeps = true;
buildInputs = [ bash ];
postPatch = ''
patchShebangs --host neofetch
'';
makeFlags = [
"PREFIX=${placeholder "out"}"