-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
58 lines (53 loc) · 1.23 KB
/
flake.nix
File metadata and controls
58 lines (53 loc) · 1.23 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
53
54
55
56
57
58
{
description = "Development environment for mnemo";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
flake-utils.url = "github:numtide/flake-utils";
mnemo-src = {
url = "github:lemueldls/mnemo";
flake = false;
};
};
outputs =
{
self,
nixpkgs,
flake-utils,
mnemo-src,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = (import nixpkgs { inherit system; });
mnemo = pkgs.callPackage ./platform/nix/default.nix { inherit mnemo-src; };
mnemo-bin = pkgs.callPackage ./platform/nix/package.nix { };
in
{
packages = { inherit mnemo mnemo-bin; };
defaultPackage = mnemo;
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
pkg-config
gobject-introspection
cargo
cargo-tauri
nodejs
];
buildInputs = with pkgs; [
at-spi2-atk
atkmm
cairo
gdk-pixbuf
glib
gtk3
harfbuzz
librsvg
libsoup_3
pango
webkitgtk_4_1
openssl
];
};
}
);
}