2021-10-14 00:43:12 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, coreutils, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pipes";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pipeseroni";
|
|
|
|
repo = "pipes.sh";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-856OWlnNiGB20571TJg7Ayzcz4r6NqdW5DMDiim09mc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out -p
|
|
|
|
make PREFIX=$out/ install
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
wrapProgram $out/bin/pipes.sh \
|
2021-01-17 00:15:33 +00:00
|
|
|
--set PATH "${lib.makeBinPath [ coreutils ncurses ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/pipeseroni/pipes.sh";
|
|
|
|
description = "Animated pipes terminal screensaver";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|