-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
41 lines (39 loc) · 1.05 KB
/
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
37
38
39
40
41
{
description = "Case Study Generator";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
perSystem = {pkgs, ...}: {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
bashInteractive
go
chromium
ibm-plex
];
};
packages.default = pkgs.buildGoModule {
name = "case-study-gen";
src = ./.;
buildInputs = [
pkgs.chromium
pkgs.ibm-plex
];
# Because vendor file exists, need to set to null
vendorHash = null;
meta = with pkgs.lib; {
description = "Case Study Generator";
homepage = "https://github.com/humaidq/case-study-gen";
license = licenses.mit;
};
};
};
systems = [
"x86_64-linux"
"aarch64-linux"
];
};
}