From 46aee1397b953b155d62ef538536a1dd63997cfe Mon Sep 17 00:00:00 2001 From: kat witch Date: Sat, 27 Mar 2021 21:19:51 +0000 Subject: [PATCH] pkgs/nekofetch: Done correctly --- pkgs/nekofetch/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/nekofetch/default.nix b/pkgs/nekofetch/default.nix index 96fd501d..b2630d60 100644 --- a/pkgs/nekofetch/default.nix +++ b/pkgs/nekofetch/default.nix @@ -1,4 +1,4 @@ -{ fetchFromGitHub, lib, stdenv, jp2a, imagemagick, curl, neofetch }: +{ fetchFromGitHub, makeWrapper, lib, stdenv, jp2a, imagemagick, curl, neofetch }: stdenv.mkDerivation rec { pname = "nekofetch"; @@ -11,6 +11,9 @@ stdenv.mkDerivation rec { sha256 = "03p1br1pn9j9nsdjg29rdznm5qh34p8dx0834rgmlc3pxlr910ng"; }; + + nativeBuildInputs = [ makeWrapper ]; + buildPhase = ''true''; installPhase = '' @@ -18,5 +21,10 @@ stdenv.mkDerivation rec { cp $src/nekofetch $out/bin/ ''; - buildInputs = [ jp2a imagemagick curl neofetch ]; + nekoPath = lib.makeBinPath [ jp2a imagemagick curl neofetch ]; + + preFixup = '' + wrapProgram $out/bin/nekofetch --prefix PATH : $nekoPath + ''; + }