2021-09-19 16:10:54 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, coreutils, ncurses }:
|
2015-10-24 19:17:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pipes";
|
2019-04-07 18:03:46 +01:00
|
|
|
version = "1.3.0";
|
2015-10-24 19:17:46 +01:00
|
|
|
|
2021-09-19 16:10:54 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pipeseroni";
|
|
|
|
repo = "pipes.sh";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-856OWlnNiGB20571TJg7Ayzcz4r6NqdW5DMDiim09mc=";
|
2015-10-24 19:17:46 +01:00
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-10-24 19:17:46 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out -p
|
|
|
|
make PREFIX=$out/ install
|
2020-08-21 22:02:46 +01:00
|
|
|
|
|
|
|
wrapProgram $out/bin/pipes.sh \
|
2021-01-15 13:21:58 +00:00
|
|
|
--set PATH "${lib.makeBinPath [ coreutils ncurses ]}"
|
2015-10-24 19:17:46 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-10-24 19:17:46 +01:00
|
|
|
description = "Animated pipes terminal screensaver";
|
2022-05-05 01:46:39 +01:00
|
|
|
homepage = "https://github.com/pipeseroni/pipes.sh";
|
2015-10-24 19:17:46 +01:00
|
|
|
license = licenses.mit;
|
2019-02-20 18:52:48 +00:00
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
2022-05-05 01:46:39 +01:00
|
|
|
mainProgram = "pipes.sh";
|
2015-10-24 19:17:46 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|