nixpkgs/pkgs/misc/screensavers/pipes/default.nix

30 lines
758 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, coreutils, ncurses }:
2015-10-24 18:17:46 +00:00
stdenv.mkDerivation rec {
pname = "pipes";
2019-04-07 17:03:46 +00:00
version = "1.3.0";
2015-10-24 18:17:46 +00:00
src = fetchurl {
url = "https://github.com/pipeseroni/pipes.sh/archive/v${version}.tar.gz";
2019-04-07 17:03:46 +00:00
sha256 = "09m4alb3clp3rhnqga5v6070p7n1gmnwp2ssqhq87nf2ipfpcaak";
2015-10-24 18:17:46 +00:00
};
buildInputs = [ makeWrapper ];
2015-10-24 18:17:46 +00:00
installPhase = ''
mkdir $out -p
make PREFIX=$out/ install
wrapProgram $out/bin/pipes.sh \
2021-01-15 13:21:58 +00:00
--set PATH "${lib.makeBinPath [ coreutils ncurses ]}"
2015-10-24 18:17:46 +00:00
'';
meta = with lib; {
homepage = "https://github.com/pipeseroni/pipes.sh";
2015-10-24 18:17:46 +00:00
description = "Animated pipes terminal screensaver";
license = licenses.mit;
maintainers = [ maintainers.matthiasbeyer ];
2015-10-24 18:17:46 +00:00
platforms = platforms.unix;
};
}