-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathflake.nix
36 lines (36 loc) · 895 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
34
35
36
{
description = "go-grip - render your markdown files local";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs,
...
}: let
systems = [
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
];
forAllSystems = f:
nixpkgs.lib.genAttrs systems (system: let
pkgs = import nixpkgs {inherit system;};
in
f pkgs);
in {
packages = forAllSystems (pkgs: {
default = pkgs.buildGoModule {
name = "go-grip";
src = self;
# Only for updating vendorHas
# vendorHash = "sha256-RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR=";
vendorHash = "sha256-aU6vo/uqJzctD7Q8HPFzHXVVJwMmlzQXhAA6LSkRAow=";
};
});
devShells = forAllSystems (pkgs: {
default = self.packages.${pkgs.system}.default;
});
};
}