nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "zimfw";
9 version = "1.18.0";
10 src = fetchFromGitHub {
11 owner = "zimfw";
12 repo = "zimfw";
13 rev = "v${version}";
14 ## zim only needs this one file to be installed.
15 sparseCheckout = [ "zimfw.zsh" ];
16 hash = "sha256-qQViaQOpLp8F4zvJETbNp0lxpdVhM1Meg7WcMKkjJRQ=";
17 };
18 strictDeps = true;
19 dontConfigure = true;
20 dontBuild = true;
21
22 installPhase = ''
23 runHook preInstall
24
25 mkdir -p $out
26 cp -r $src/zimfw.zsh $out/
27
28 runHook postInstall
29 '';
30
31 meta = with lib; {
32 description = "Zsh configuration framework with blazing speed and modular extensions";
33 homepage = "https://zimfw.sh";
34 license = licenses.mit;
35 maintainers = [ maintainers.joedevivo ];
36 platforms = platforms.all;
37 };
38}