mirror of
https://github.com/kossLAN/zsh-flake.git
synced 2025-11-05 02:09:49 -05:00
even more overlay testing
This commit is contained in:
parent
b3f56fed8f
commit
305e12c201
1 changed files with 21 additions and 2 deletions
23
flake.nix
23
flake.nix
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "My ZSH dot files in flake format";
|
||||
description = "My zsh dot files in flake format";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
|
|
@ -15,7 +15,25 @@
|
|||
(system: fn system nixpkgs.legacyPackages.${system});
|
||||
|
||||
overlay = final: prev: {
|
||||
zsh = self.packages.${prev.system}.default;
|
||||
zsh = prev.stdenv.mkDerivation {
|
||||
inherit (self.packages.${prev.system}.default) name;
|
||||
inherit (self.packages.${prev.system}.default) version;
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out
|
||||
cp -r ${self.packages.${prev.system}.default}/* $out/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (prev.zsh.meta) platforms;
|
||||
description = "Custom zsh shell";
|
||||
shellPath = "/bin/zsh";
|
||||
};
|
||||
|
||||
passthru = {
|
||||
shellPath = "/bin/zsh";
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
# Package so you can test this out, without installing :3.
|
||||
|
|
@ -28,6 +46,7 @@
|
|||
default = zsh;
|
||||
});
|
||||
|
||||
# Export the overlay
|
||||
overlays.default = overlay;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue