Skip to content

Commit

Permalink
Merge pull request #17 from chiroptical/drop-flake-utils
Browse files Browse the repository at this point in the history
Remove flake-utils
  • Loading branch information
chiroptical authored Jan 9, 2025
2 parents edb44c5 + cf32b09 commit 98adf69
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 55 deletions.
34 changes: 0 additions & 34 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 18 additions & 21 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,24 @@

inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = {
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachSystem ["x86_64-linux" "x86_64-darwin" "aarch64-darwin"] (system: let
pkgs = import nixpkgs {
inherit system;
config.allowBroken = true;
};
# erlang_bits = pkgs.callPackage ./erlang_bits.nix {};
in {
devShell = import ./shell.nix {
inherit pkgs;
};
# defaultPackage = erlang_bits;
packages = flake-utils.lib.flattenTree {
# inherit erlang_bits;
};
});
outputs = {nixpkgs, ...}: let
supportedSystems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];

forAllSystems = function:
nixpkgs.lib.genAttrs supportedSystems (
system: function nixpkgs.legacyPackages.${system}
);
in {
devShell = forAllSystems (
pkgs:
default = pkgs.callPackage ./shell.nix { };
);
};
}

0 comments on commit 98adf69

Please sign in to comment.