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.packages = with pkgs; [
bitwarden-cli
copier
diffutils
findutils
gh
@@ -53,5 +54,5 @@
tree
unzip
wget
] ++ (if (pkgs.copier.version == "9.1.0") then [ pkgs.copier ] else []);
];
}
+2 -5
View File
@@ -1,13 +1,10 @@
{ pkgs, lib, ... }:
let
inherit (lib.strings) hasSuffix;
system = pkgs.system;
inherit (pkgs.stdenv) isDarwin isLinux;
in {
imports = [
]
++ (if (isLinux) then [./linux] else []);
./linux
];
# Enable flakes
nix = {
+5 -3
View File
@@ -26,6 +26,8 @@ let
buildFirefoxXpiAddon = final.nur.repos.rycee.lib.buildFirefoxXpiAddon;
is2405 = prev.lib.versionAtLeast prev.lib.version "24.05";
in rec {
gregpy = myPython;
@@ -44,8 +46,8 @@ in rec {
aacs = prev.callPackage ./aacs.nix {};
brew = prev.callPackage ./homebrew.nix {};
configure_aws_creds = prev.callPackage ./configure_aws_creds.nix {};
copier = prev.copier.overridePythonAttrs (old: {
version = "9.1.1";
copier = (if is2405 then prev.copier.overridePythonAttrs (old: {
version = "9.1.0";
src = final.fetchFromGitHub {
owner = "copier-org";
repo = "copier";
@@ -53,7 +55,7 @@ in rec {
hash = "sha256-x5r7Xv4lAOMkR+UIEeSY7LvbYMLpTWYuICYe9ygz1tA=";
postFetch = "rm $out/tests/demo/doc/ma*ana.txt";
};
});
}) else prev.copier);
enwiki-dump = prev.callPackage ./enwiki-dump.nix {};
hms = prev.callPackage ./hms {
pkgs = final.pkgs;