depot/third_party/nixpkgs/pkgs/misc/screensavers/pipes/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

32 lines
800 B
Nix

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