1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-23 20:22:04 +03:00

chore: flakes support arrived in nixStable, no more

patched nix. Leave commented overlay as example
This commit is contained in:
teutat3s 2021-11-26 12:15:35 +01:00 committed by Parthiv Seetharaman
parent b824eb5e5d
commit f025da4b55
3 changed files with 9 additions and 6 deletions

View File

@ -91,7 +91,7 @@
# Dependency Groups - Style
checksInputs = { inherit nixpkgs; digga = self; };
jobsInputs = { inherit nixpkgs; digga = self; };
devShellInputs = { inherit nixpkgs latest devshell; };
devShellInputs = { inherit nixpkgs devshell; };
# .. we hope you like this style.
# .. it's adopted by a growing number of projects.

View File

@ -1,3 +1,4 @@
{ inputs }: {
patchedNix = import ./nix-patched.nix { inherit inputs; };
# Example:
#patchedNix = import ./nix-patched.nix { inherit inputs; };
}

View File

@ -3,14 +3,16 @@ final: prev: {
__dontExport = true;
# Example:
#
# Use pinned version to guarantee reproducability
# with this fast moving target. Flipside: not store
# efficient.
nixStable = inputs.latest.legacyPackages.${prev.system}.nixStable;
#nixUnstable = inputs.nix.packages.${prev.system}.nix;
nixos-rebuild = prev.nixos-rebuild.override {
nix = final.nixStable;
};
#nixos-rebuild = prev.nixos-rebuild.override {
# nix = final.nixUnstable;
#};
# check if we need to override more stuff ourthe patched nix