forked from face-hh/webx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
45 lines (38 loc) · 1.1 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
webx-src = {
url = "github:face-hh/webx";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, ... } @inputs: flake-utils.lib.eachDefaultSystem(system: let
pkgs = import nixpkgs {inherit system overlays;};
# same as the one in the overlay but with the current pkgs iteration (current system).
package = pkgs.callPackage ./default.nix {};
overlays = [mainOverlay];
mainOverlay = (final: _: {
inherit (inputs) webx-src;
webx = final.callPackage ./default.nix {};
});
in {
packages.default = package;
overlays.default = mainOverlay;
devShells.default = let inherit (pkgs) mkShell; in mkShell {
name = "dev";
nativeBuildInputs = [pkgs.pkg-config];
buildInputs = with pkgs; [package cargo rustc];
propagatedBuildInputs = with pkgs; [
glib
pango
gdk-pixbuf
openssl_3_3
graphene
gtk4
libadwaita
lua5_4_compat
];
};
});
}