This repository has been archived by the owner on Jan 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
67 lines (63 loc) · 1.79 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
os-installer-src = {
url = "git+https://gitlab.gnome.org/p3732/os-installer";
flake = false;
};
os-installer-snowflake-config.url = "github:snowflakelinux/os-installer-snowflake-config";
os-installer-snowflake-config.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, utils, os-installer-src, os-installer-snowflake-config }@inputs:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
os-installer-snowflake-config-pkg = pkgs.callPackage os-installer-snowflake-config {
inherit (inputs);
};
name = "os-installer";
in
rec
{
packages.${name} = pkgs.callPackage ./default.nix {
inherit (inputs) os-installer-src;
os-installer-config = os-installer-snowflake-config-pkg;
};
# `nix build`
defaultPackage = packages.${name};
# `nix run`
apps.${name} = utils.lib.mkApp {
inherit name;
drv = packages.${name};
};
defaultApp = packages.${name};
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
python310Packages.pyaml
python310Packages.pygobject3
gnome-desktop
libxml2
vte-gtk4
desktop-file-utils
cairo
gdk-pixbuf
gobject-introspection
graphene
gtk4
libadwaita
meson
ninja
openssl
pandoc
pango
pkgconfig
polkit
libgweather
wrapGAppsHook4
];
};
});
}