mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 17:34:04 +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.
33 lines
758 B
Nix
33 lines
758 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zsh-autopair";
|
|
version = "1.0-unstable-2024-07-14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hlissner";
|
|
repo = "zsh-autopair";
|
|
rev = "449a7c3d095bc8f3d78cf37b9549f8bb4c383f3d";
|
|
hash = "sha256-3zvOgIi+q7+sTXrT+r/4v98qjeiEL4Wh64rxBYnwJvQ=";
|
|
};
|
|
|
|
installPhase = ''
|
|
install -D autopair.zsh $out/share/zsh/${pname}/autopair.zsh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/hlissner/zsh-autopair";
|
|
description = "Plugin that auto-closes, deletes and skips over matching delimiters in zsh intelligently";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
_0qq
|
|
DataHearth
|
|
];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|