nixpkgs/pkgs/tools/misc/neofetch/default.nix

34 lines
722 B
Nix
Raw Normal View History

2017-01-22 21:46:31 +01:00
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "neofetch-${version}";
2017-01-23 18:45:29 +01:00
version = "3.0";
2017-01-22 21:46:31 +01:00
src = fetchFromGitHub {
owner = "dylanaraps";
repo = "neofetch";
rev = version;
2017-01-23 18:45:29 +01:00
sha256 = "0z8sqbspf6j7yqy7wbd8ba3pfn836b0y8kmgkcyvswgjkcyh8m68";
2017-01-22 21:46:31 +01:00
};
patchPhase = ''
substituteInPlace ./neofetch \
--replace "/usr/share" "$out/share"
'';
dontBuild = true;
makeFlags = [
"DESTDIR=$(out)"
"PREFIX="
];
meta = with stdenv.lib; {
description = "A fast, highly customizable system info script";
homepage = https://github.com/dylanaraps/neofetch;
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ alibabzo ];
};
}