screenfetch: 2016-10-11 -> 3.8.0
This commit is contained in:
parent
3b9beaf842
commit
0cdc0ac3a1
@ -3,26 +3,8 @@
|
|||||||
, darwin
|
, darwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
let
|
||||||
name = "screenFetch-2016-10-11";
|
path = lib.makeBinPath ([
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "KittyKatt";
|
|
||||||
repo = "screenFetch";
|
|
||||||
rev = "89e51f24018c89b3647deb24406a9af3a78bbe99";
|
|
||||||
sha256 = "0i2k261jj2s4sfhav7vbsd362pa0gghw6qhwafhmicmf8hq2a18v";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
install -Dm 0755 screenfetch-dev $out/bin/screenfetch
|
|
||||||
install -Dm 0644 screenfetch.1 $out/share/man/man1/screenfetch.1
|
|
||||||
|
|
||||||
# Fix all of the depedencies of screenfetch
|
|
||||||
patchShebangs $out/bin/screenfetch
|
|
||||||
wrapProgram "$out/bin/screenfetch" \
|
|
||||||
--set PATH ${lib.makeBinPath ([
|
|
||||||
coreutils gawk gnused findutils
|
coreutils gawk gnused findutils
|
||||||
gnugrep ncurses bc
|
gnugrep ncurses bc
|
||||||
] ++ lib.optionals stdenv.isLinux [
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
@ -34,7 +16,30 @@ stdenv.mkDerivation {
|
|||||||
DarwinTools
|
DarwinTools
|
||||||
system_cmds
|
system_cmds
|
||||||
"/usr" # some commands like defaults is not available to us
|
"/usr" # some commands like defaults is not available to us
|
||||||
]))}
|
]));
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "screenFetch-${version}";
|
||||||
|
version = "3.8.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "KittyKatt";
|
||||||
|
repo = "screenFetch";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "00ibv72cb7cqfpljyzgvajhbp0clqsqliz18nyv83bfy3gkf2qs8";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -Dm 0755 screenfetch-dev $out/bin/screenfetch
|
||||||
|
install -Dm 0644 screenfetch.1 $out/share/man/man1/screenfetch.1
|
||||||
|
install -Dm 0644 -t $out/share/doc/screenfetch CHANGELOG COPYING README.mkdn TODO
|
||||||
|
|
||||||
|
# Fix all of the dependencies of screenfetch
|
||||||
|
patchShebangs $out/bin/screenfetch
|
||||||
|
wrapProgram "$out/bin/screenfetch" \
|
||||||
|
--prefix PATH : ${path}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
@ -50,8 +55,8 @@ stdenv.mkDerivation {
|
|||||||
command! This script is very easy to add to and can easily be extended.
|
command! This script is very easy to add to and can easily be extended.
|
||||||
'';
|
'';
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
homepage = http://git.silverirc.com/cgit.cgi/screenfetch-dev.git/;
|
homepage = https://github.com/KittyKatt/screenFetch;
|
||||||
maintainers = with maintainers; [relrod];
|
maintainers = with maintainers; [ relrod ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user