-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathflake.nix
73 lines (70 loc) · 1.97 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
68
69
70
71
72
73
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
nixos-appstream-data = {
url = "github:korfuri/nixos-appstream-data/flake";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "utils";
};
};
outputs = { self, nixpkgs, utils, nixos-appstream-data, ... }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in
rec
{
packages = let
nix-software-center = pkgs.callPackage ./default.nix { inherit (nixos-appstream-data.packages."${system}") nixos-appstream-data; };
in {
inherit nix-software-center;
default = nix-software-center;
};
checks = self.packages.${system};
hydraJobs = self.packages.${system};
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
cargo
clippy
desktop-file-utils
rust-analyzer
rustc
rustfmt
cairo
gdk-pixbuf
gobject-introspection
graphene
gtk4
gtksourceview5
libadwaita
libxml2
meson
ninja
openssl
pandoc
pango
pkg-config
polkit
sqlite
wrapGAppsHook4
nixos-appstream-data.packages."${system}".nixos-appstream-data
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
})
// {
overlays = {
pkgs = final: prev: {
nix-software-center = self.packages.${final.system}.nix-software-center;
};
nixSoftwareCenterPkgs = final: prev: {
nixSoftwareCenterPkgs = self.packages.${prev.system};
};
default = self.overlays.nixSoftwareCenterPkgs;
};
overlay = self.overlays.pkgs;
};
}