From 55371ddc75a7417b130725473da6270eb8eb463a Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Sat, 23 Dec 2023 03:17:18 +0100 Subject: [PATCH] indeed --- flake.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 94e0bdf..9cf3aad 100644 --- a/flake.nix +++ b/flake.nix @@ -2,6 +2,7 @@ description = "A few hydra jobs"; inputs = { nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable; + flake-utils.url = github:numtide/flake-utils; uiua = { url = github:uiua-lang/uiua?ref=0.7.1; inputs.nixpkgs.follows = "nixpkgs"; @@ -11,17 +12,16 @@ inputs.nixpkgs.follows = "nixpkgs"; }; }; - outputs = { self, nixpkgs, uiua, nickel }: - let system = "x86_64-linux"; - pkgs = nixpkgs.legacyPackages.${system}; + outputs = { self, nixpkgs, flake-utils, uiua, nickel }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = import nixpkgs { inherit system; }; in { - packages.${system} = { - uiua = uiua.packages.${system}.default; - nickel = nickel.packages.${system}.default; - default = self.packages.${system}.nickel; + packages = { + uiua = uiua.packages.default; + nickel = nickel.packages.default; }; hydraJobs = { inherit (self) packages; }; - }; + }); }