depot/third_party/nixpkgs/pkgs/misc/screensavers/pipes/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

29 lines
764 B
Nix

{ lib, stdenv, fetchurl, makeWrapper, coreutils, ncurses }:
stdenv.mkDerivation rec {
pname = "pipes";
version = "1.3.0";
src = fetchurl {
url = "https://github.com/pipeseroni/pipes.sh/archive/v${version}.tar.gz";
sha256 = "09m4alb3clp3rhnqga5v6070p7n1gmnwp2ssqhq87nf2ipfpcaak";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir $out -p
make PREFIX=$out/ install
wrapProgram $out/bin/pipes.sh \
--set PATH "${lib.makeBinPath [ coreutils ncurses ]}"
'';
meta = with lib; {
homepage = "https://github.com/pipeseroni/pipes.sh";
description = "Animated pipes terminal screensaver";
license = licenses.mit;
maintainers = [ maintainers.matthiasbeyer ];
platforms = platforms.unix;
};
}