-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
52 lines (47 loc) · 1.22 KB
/
flake.nix
File metadata and controls
52 lines (47 loc) · 1.22 KB
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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
zig = {
url = "github:mitchellh/zig-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-compat.follows = "";
};
};
};
outputs = { self, nixpkgs, flake-utils, zig }: flake-utils.lib.eachDefaultSystem(system: let
pkgs = import nixpkgs {inherit system;};
zig-dev = zig.packages.${system}."0.13.0";
in {
packages = let
makeBuild = optimize: pkgs.callPackage ./nix/package.nix {
inherit (pkgs) zig_0_13;
inherit optimize;
};
in {
default = self.packages.${system}.harakara-terminal-release;
harakara-terminal-debug = makeBuild "Debug";
harakara-terminal-release = makeBuild "ReleaseFast";
};
devShells.default = pkgs.mkShell (let
inherit (pkgs) lib;
in {
LD_LIBRARY_PATH = lib.makeLibraryPath (with pkgs; [
gtk3
glib
vte
]);
nativeBuildInputs = with pkgs; [
gtk3
glib
pkg-config
vte
];
buildInputs = [
zig-dev
self.packages.${system}.harakara-terminal-debug
];
});
});
}