mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 05:03:40 +00:00
![aleksana](/assets/img/avatar_default.png)
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
800 B
Nix
33 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;
|
|
};
|
|
}
|