-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathflake.nix
49 lines (44 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
46
47
48
49
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
nixpkgs-gotk4.url = "github:NixOS/nixpkgs?ref=nixos-24.05";
gotk4-nix.url = "github:diamondburned/gotk4-nix/main";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
nixpkgs-gotk4,
gotk4-nix,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
pkgs-gotk4 = import nixpkgs-gotk4 {
inherit system;
overlays = [ gotk4-nix.overlays.patchelf ];
};
in
{
devShells.default = gotk4-nix.lib.mkShell {
base.pname = "gotk4-adwaita";
pkgs = pkgs-gotk4;
buildInputs = with pkgs-gotk4; [
gobject-introspection
glib
graphene
gdk-pixbuf
gtk4
gtk3
vulkan-headers
libadwaita
];
packages = with pkgs; [ self.formatter.${system} ];
};
formatter = pkgs.nixfmt-rfc-style;
}
);
}