mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
571c71e6f7
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.
32 lines
828 B
Nix
32 lines
828 B
Nix
{ lib, stdenv, fetchurl, makeWrapper, coreutils }:
|
|
|
|
stdenv.mkDerivation {
|
|
version = "4.0.4";
|
|
pname = "redo-sh";
|
|
|
|
src = fetchurl {
|
|
url = "http://news.dieweltistgarnichtso.net/bin/archives/redo-sh.tar.gz";
|
|
sha256 = "0d3hz3vy5qmjr9r4f8a5cx9hikpzs8h8f0fsl3dpbialf4wck24g";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
sourceRoot = ".";
|
|
installPhase = ''
|
|
mkdir -p "$out/share"
|
|
mv man "$out/share"
|
|
mv bin "$out"
|
|
for p in $out/bin/*; do
|
|
wrapProgram "$p" --prefix PATH : "$out/bin:${coreutils}/bin"
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Redo implementation in Bourne Shell";
|
|
homepage = "http://news.dieweltistgarnichtso.net/bin/redo-sh.html";
|
|
license = licenses.agpl3Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
};
|
|
}
|