-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
75 lines (63 loc) · 2.22 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
74
75
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.05";
mauniumStickerpicker = {
url = "github:maunium/stickerpicker";
flake = false;
};
};
outputs = { self, nixpkgs, mauniumStickerpicker }: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
pipes = {
assignIds = pkgs.callPackage ./src/pipes/assignIds.nix { };
assignTitles = pkgs.callPackage ./src/pipes/assignTitles.nix { };
autoFetcher = pkgs.callPackage ./src/pipes/autoFetcher.nix { };
imagemagickConverter = pkgs.callPackage ./src/pipes/imagemagickConverter.nix { };
mediainfoExtractor = pkgs.callPackage ./src/pipes/mediainfoExtractor.nix { };
generateStickerpack = pkgs.callPackage ./src/pipes/generateStickerpack.nix { };
prefixIdsWithPackId = pkgs.callPackage ./src/pipes/prefixIdsWithPackId.nix { };
};
legacyPackages.generateStickerpicker = pkgs.callPackage ./src/generateStickerpicker.nix {
inherit (self) pipes;
inherit mauniumStickerpicker;
};
packages.${system} = {
default = self.packages.${system}.stickerpicker-tools;
stickerpicker-tools = pkgs.callPackage ./src/pkgs/stickerpicker-tools.nix {
inherit mauniumStickerpicker;
};
};
docs = let
inherit (pkgs) lib;
scrubbedPkgsModule = {
imports = [{
_module.args = {
pkgs = pkgs;
pkgs_i686 = lib.mkForce { };
};
}];
};
dontCheckDefinitions = { _module.check = false; };
options = builtins.removeAttrs ((lib.evalModules {
modules = [
scrubbedPkgsModule
dontCheckDefinitions
self.nixosModules.default
];
}).options) ["_module"];
in
pkgs.nixosOptionsDoc {
inherit options;
};
nixosModules.default = import ./src/module.nix { inherit (self.legacyPackages) generateStickerpicker; };
tests = import ./tests {
inherit nixpkgs pkgs;
inherit (pkgs) lib;
inherit (self.legacyPackages) generateStickerpicker;
inherit (self.pipes) assignIds assignTitles autoFetcher imagemagickConverter mediainfoExtractor generateStickerpack;
nixosModule = self.nixosModules.default;
};
};
}