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.
27 lines
754 B
Nix
27 lines
754 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zsh-better-npm-completion";
|
|
version = "unstable-2019-11-19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lukechilds";
|
|
repo = "zsh-better-npm-completion";
|
|
rev = "0a7cf042415324ec38a186fdcbc9af163f0d7e69";
|
|
sha256 = "16z7k5n1rcl9i61lrm7i5dsqsmhvdp1y4y5ii6hv2xpp470addgy";
|
|
};
|
|
|
|
strictDeps = true;
|
|
installPhase = ''
|
|
install -Dm 0644 zsh-better-npm-completion.plugin.zsh $out/share/zsh-better-npm-completion
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Better completion for npm";
|
|
homepage = "https://github.com/lukechilds/zsh-better-npm-completion";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.gerschtli ];
|
|
};
|
|
}
|