mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
43 lines
815 B
Nix
43 lines
815 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
, patsh
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "script-directory";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ianthehenry";
|
|
repo = "sd";
|
|
rev = "v${version}";
|
|
hash = "sha256-X5RWCJQUqDnG2umcCk5KS6HQinTJVapBHp6szEmbc4U=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
patsh
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
patsh -f sd
|
|
install -Dt "$out/bin" sd
|
|
installShellCompletion --zsh _sd
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Cozy nest for your scripts";
|
|
homepage = "https://github.com/ianthehenry/sd";
|
|
changelog = "https://github.com/ianthehenry/sd/tree/${src.rev}#changelog";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
mainProgram = "sd";
|
|
};
|
|
}
|