about summary refs log tree commit diff
path: root/pkgs/misc/screensavers/pipes/default.nix
blob: 9962601875067ceca4b4d5edcdca079b71b58d5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ 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; {
    homepage = "https://github.com/pipeseroni/pipes.sh";
    description = "Animated pipes terminal screensaver";
    license = licenses.mit;
    maintainers = [ maintainers.matthiasbeyer ];
    platforms = platforms.unix;
  };
}