This repository has been archived by the owner on Nov 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
flake.nix
81 lines (66 loc) · 2.21 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
flake-utils = {
url = "github:numtide/flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-compat = {
url = "github:edolstra/flake-compat";
inputs.nixpkgs.follows = "nixpkgs";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
flake-utils .lib.eachDefaultSystem (system:
let
inherit (pkgs) lib stdenv mkShell;
inherit (pkgs.darwin.apple_sdk.frameworks) SystemConfiguration;
overlays = [
];
pkgs = import nixpkgs {
inherit system overlays;
};
buildInputs = with pkgs; [
# Build
pkg-config
nodejs
yarn
werf
] ++ lib.optional (stdenv.isDarwin) [
# Build
libiconv
SystemConfiguration
];
in
rec {
packages = {
# # nix build .#haqq-slack-bot
# haqq-slack-bot = callPackage nix/packages/haqq-slack-bot.nix {
# inherit self pkgs nix-filter cargoToml naerskPlatform buildInputs;
# release = true;
# };
# # nix build .#haqq-slack-bot-zig-x86-64-unknown-linux-musl
# haqq-slack-bot-zig-x86-64-unknown-linux-musl = callPackage nix/packages/haqq-slack-bot-zig.nix {
# inherit self pkgs nix-filter cargoToml naerskPlatform buildInputs;
# release = true;
# target = "x86_64-unknown-linux-musl";
# };
# # nix build .#haqq-slack-bot-zig-aarch64-unknown-linux-gnu
# haqq-slack-bot-zig-aarch64-unknown-linux-gnu = callPackage nix/packages/haqq-slack-bot-zig.nix {
# inherit self pkgs nix-filter cargoToml naerskPlatform buildInputs;
# release = true;
# target = "aarch64-unknown-linux-gnu";
# };
# # nix build .#haqq-slack-bot-image
# haqq-slack-bot-image = callPackage nix/packages/haqq-slack-bot-image.nix {
# inherit pkgs packages cargoToml buildInputs;
# };
};
devShell = mkShell {
inherit buildInputs;
WERF_PLATFORM="linux/amd64";
};
}
);
}