diff options
| author | Charlie Root <charlie@charlieroot.dev> | 2025-02-22 12:14:49 +0100 |
|---|---|---|
| committer | Charlie Root <charlie@charlieroot.dev> | 2025-02-22 12:14:49 +0100 |
| commit | 6bec159f6076cd59936068ffa0c91ffceb2dd6cd (patch) | |
| tree | cc9bb48efe726f8aa10c33f3d85736b6409bfa87 /flake.nix | |
| parent | 4953151f6ffa361906049bd2e3ab91b8354e84c8 (diff) | |
flake: drop flake-utils as a dependency
Replace flake-utils with a few lines of pure nix code, since flake-utils
is not really useful here.
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -1,17 +1,19 @@ { description = "YaCy -- distributed search engine"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - inputs.flake-utils.url = "github:numtide/flake-utils"; - outputs = { self, nixpkgs, flake-utils }: - flake-utils.lib.eachDefaultSystem (system: let - pkgs = nixpkgs.legacyPackages.${system}; - in { - devShells.default = pkgs.mkShell { - packages = [ - pkgs.ant - pkgs.temurin-bin-11 + outputs = inputs: let + systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; + forEachSystem = inputs.nixpkgs.lib.genAttrs systems; + pkgsForEach = inputs.nixpkgs.legacyPackages; + in { + devShells = forEachSystem (system: { + default = pkgsForEach.${system}.mkShell { + packages = with pkgsForEach.${system}; [ + pkgs.ant + pkgs.temurin-bin-11 ]; }; }); + }; } |
