Commit 40d005c5 authored by Leo's avatar Leo
Browse files

chore(flake): reorganize

parent 3aa7a048
Pipeline #116205 passed with stage
in 1 minute and 3 seconds
......@@ -10,30 +10,29 @@
, flake-utils
, ...
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
rec {
packages = {
atools = pkgs.callPackage ./atools.nix { };
};
defaultPackage = packages.atools;
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs;
[
redo-sh
bats
scdoc
lua5_3
go_1_18
] ++ lib.optionals pkgs.stdenv.isLinux [ busybox ];
};
overlays =
final:
prev:
{
inherit (packages) atools;
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system}.extend self.overlays.default;
in
{
packages = flake-utils.lib.flattenTree {
inherit (pkgs) atools;
};
});
defaultPackage = pkgs.atools;
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs;
[
redo-sh
bats
scdoc
lua5_3
go_1_18
] ++ lib.optionals pkgs.stdenv.isLinux [ busybox ];
};
}) //
{
overlays.default = final: prev: {
atools = final.callPackage ./atools.nix { };
};
};
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment