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.
35 lines
1001 B
Nix
35 lines
1001 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "agdsn-zsh-config";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "agdsn";
|
|
repo = "agdsn-zsh-config";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-8POQPk/hsJBMJ/ZJe9XzVj7Rd7C2+QnpzgYbUR0s3Fc=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D -m644 zshrc-base-hw.zsh "$out/etc/zsh/zshrc"
|
|
install -D -m644 zshrc-home.zsh "$out/etc/skel/.zshrc"
|
|
install -D -m644 zshrc-home.zsh "$out/etc/zsh/newuser.zshrc.recommended"
|
|
install -D -m644 profile-d-agdsn-zsh-config.sh "$out/etc/profile.d/agdsn-zsh-config.sh"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Modified version of the Grml Zsh configuration specialised for the needs of system administration";
|
|
homepage = "https://github.com/agdsn/agdsn-zsh-config";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ fugi ];
|
|
};
|
|
}
|