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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
800 B
Nix
Raw Permalink Normal View History

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