Fix recursion and coiper builds

This commit is contained in:
Greg Hellings
2024-01-22 18:37:41 +00:00
parent b9cca7d400
commit b22dfd6f96
3 changed files with 9 additions and 9 deletions
+2 -1
View File
@@ -35,6 +35,7 @@
home.stateVersion = "23.05"; home.stateVersion = "23.05";
home.packages = with pkgs; [ home.packages = with pkgs; [
bitwarden-cli bitwarden-cli
copier
diffutils diffutils
findutils findutils
gh gh
@@ -53,5 +54,5 @@
tree tree
unzip unzip
wget wget
] ++ (if (pkgs.copier.version == "9.1.0") then [ pkgs.copier ] else []); ];
} }
+2 -5
View File
@@ -1,13 +1,10 @@
{ pkgs, lib, ... }: { pkgs, lib, ... }:
let let
inherit (lib.strings) hasSuffix;
system = pkgs.system;
inherit (pkgs.stdenv) isDarwin isLinux;
in { in {
imports = [ imports = [
] ./linux
++ (if (isLinux) then [./linux] else []); ];
# Enable flakes # Enable flakes
nix = { nix = {
+5 -3
View File
@@ -26,6 +26,8 @@ let
buildFirefoxXpiAddon = final.nur.repos.rycee.lib.buildFirefoxXpiAddon; buildFirefoxXpiAddon = final.nur.repos.rycee.lib.buildFirefoxXpiAddon;
is2405 = prev.lib.versionAtLeast prev.lib.version "24.05";
in rec { in rec {
gregpy = myPython; gregpy = myPython;
@@ -44,8 +46,8 @@ in rec {
aacs = prev.callPackage ./aacs.nix {}; aacs = prev.callPackage ./aacs.nix {};
brew = prev.callPackage ./homebrew.nix {}; brew = prev.callPackage ./homebrew.nix {};
configure_aws_creds = prev.callPackage ./configure_aws_creds.nix {}; configure_aws_creds = prev.callPackage ./configure_aws_creds.nix {};
copier = prev.copier.overridePythonAttrs (old: { copier = (if is2405 then prev.copier.overridePythonAttrs (old: {
version = "9.1.1"; version = "9.1.0";
src = final.fetchFromGitHub { src = final.fetchFromGitHub {
owner = "copier-org"; owner = "copier-org";
repo = "copier"; repo = "copier";
@@ -53,7 +55,7 @@ in rec {
hash = "sha256-x5r7Xv4lAOMkR+UIEeSY7LvbYMLpTWYuICYe9ygz1tA="; hash = "sha256-x5r7Xv4lAOMkR+UIEeSY7LvbYMLpTWYuICYe9ygz1tA=";
postFetch = "rm $out/tests/demo/doc/ma*ana.txt"; postFetch = "rm $out/tests/demo/doc/ma*ana.txt";
}; };
}); }) else prev.copier);
enwiki-dump = prev.callPackage ./enwiki-dump.nix {}; enwiki-dump = prev.callPackage ./enwiki-dump.nix {};
hms = prev.callPackage ./hms { hms = prev.callPackage ./hms {
pkgs = final.pkgs; pkgs = final.pkgs;