defaultSystems NEVER works FFS

This commit is contained in:
niten 2022-05-29 10:22:07 -07:00
parent 399cde0558
commit 0d0734eeca
1 changed files with 21 additions and 20 deletions

View File

@ -16,24 +16,25 @@
};
outputs = { self, nixpkgs, utils, clj2nix, build-tools-src, gitignore, ... }:
utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
build-tools-jar = pkgs.callPackage ./build.tools.nix {
inherit build-tools-src;
inherit (gitignore.lib) gitignoreSource;
};
update-deps = pkgs.callPackage ./update-deps.nix {
inherit build-tools-src;
inherit clj2nix;
};
in {
packages = utils.lib.flattenTree {
mkClojureLib =
pkgs.callPackage ./mkClojureLib.nix { inherit build-tools-jar; };
};
overlay = final: prev: {
inherit (self.packages.${system}) mkClojureLib;
};
});
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages."${system}";
build-tools-jar = pkgs.callPackage ./build.tools.nix {
inherit build-tools-src;
inherit (gitignore.lib) gitignoreSource;
};
update-deps = pkgs.callPackage ./update-deps.nix {
inherit build-tools-src;
inherit clj2nix;
};
in {
packages.${system} = utils.lib.flattenTree {
mkClojureLib =
pkgs.callPackage ./mkClojureLib.nix { inherit build-tools-jar; };
};
overlay = final: prev: {
inherit (self.packages."${system}") mkClojureLib;
};
};
}