on master help sign in
elm-ps-bridge/flake.nix
35 lines 899 B history raw
1{
2 inputs = {
3 flake-utils.url = "github:numtide/flake-utils";
4 haskellNix.url = "github:input-output-hk/haskell.nix";
5 nixpkgs.follows = "haskellNix/nixpkgs-unstable";
6 };
7 outputs = { self, nixpkgs, flake-utils, haskellNix }:
8 flake-utils.lib.eachSystem [
9 "x86_64-linux"
10 "x86_64-darwin"
11 "aarch64-linux"
12 "aarch64-darwin"
13 ]
14 (system:
15 let
16 pkgs = import nixpkgs {
17 overlays = [ haskellNix.overlay ];
18 inherit system;
19 inherit (haskellNix) config;
20 };
22 project = pkgs.haskell-nix.project' {
23 src = ./.;
24 };
25 flake = project.flake { };
26 in
27 flake //
28 {
29 apps.default = {
30 type = "app";
31 program = "${flake.packages."elm-ps-bridge:exe:elm-ps-bridge"}/bin/elm-ps-bridge";
32 };
33 }
34 );