From 305e12c201a069ac51542d389747bb314bb34304 Mon Sep 17 00:00:00 2001 From: kossLAN Date: Thu, 14 Nov 2024 23:49:01 -0500 Subject: [PATCH] even more overlay testing --- flake.nix | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index ecd7edb..16f0e13 100644 --- a/flake.nix +++ b/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; }; }