-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
33 lines (30 loc) · 874 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
30
31
32
33
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
perSystem = {
config,
pkgs,
...
}: let
inherit (pkgs) just;
name = "build-configs";
version = "0.1.0";
CGO_ENABLED = "0";
in {
devShells.default = pkgs.mkShell {
buildInputs = [just];
inputsFrom = [config.packages.default];
};
packages = {
default = pkgs.buildGoModule {
inherit CGO_ENABLED name version;
src = ./.;
subPackages = ["cmd/${name}"];
vendorHash = "sha256-6B9O6ho4COpJy4HlkzQ0lk+ieezRO3xg9LyLHzoxYzc=";
};
};
};
};
}