-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
41 lines (39 loc) · 1.08 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
{
description = "A flake for building chromexup";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
chromexup-src.url = "github:xsmile/chromexup";
chromexup-src.flake = false;
};
outputs = {
self,
nixpkgs,
flake-utils,
chromexup-src,
}:
(flake-utils.lib.eachDefaultSystem (system: let
# Prepare the Python package using the setup.py in the chromexup repository
pkgs = import nixpkgs {
inherit system;
};
chromexup = pkgs.callPackage ./pkg.nix {inherit chromexup-src;};
in {
# Provide Nix packages and apps using the package built above
packages.chromexup = chromexup;
# broken?
# apps.chromexup = pkgs.lib.mkApp {
# inherit (chromexup) drv;
# program = "${chromexup}/bin/chromexup";
# };
packages.default = chromexup;
}))
// (let
module = import ./module.nix {inherit chromexup-src;};
in {
homeManagerModules = {
default = module;
chromexup = module;
};
});
}