forked from input-output-hk/metronome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
29 lines (27 loc) · 871 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
description = "Metronome";
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs, utils }:
let
localOverlay = import ./nix/overlay.nix;
pkgsForSystem = system: import nixpkgs {
overlays = [
localOverlay
];
inherit system;
};
in utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ] (system: rec {
legacyPackages = pkgsForSystem system;
packages = utils.lib.flattenTree {
inherit (legacyPackages) devShell metronome;
};
defaultPackage = packages.metronome;
apps.metronome = utils.lib.mkApp { drv = packages.metronome; }; # use as `nix run <mypkg>`
hydraJobs = { inherit (legacyPackages) metronome; };
}) // {
overlay = localOverlay;
};
}