forked from mrshmllow/affinity-nix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
43 lines (39 loc) · 1.12 KB
/
flake.nix
File metadata and controls
43 lines (39 loc) · 1.12 KB
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
{
description = "An attempt at packging affinity photo for nix";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
treefmt-nix.url = "github:numtide/treefmt-nix";
git-hooks.url = "github:cachix/git-hooks.nix";
elemental-wine-source = {
url = "gitlab:ElementalWarrior/wine?host=gitlab.winehq.org&ref=affinity-photo3-wine9.13-part3";
flake = false;
};
flake-compat.url = "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz";
};
outputs =
inputs@{
flake-parts,
git-hooks,
treefmt-nix,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
git-hooks.flakeModule
treefmt-nix.flakeModule
./nix/hooks.nix
./nix/fmt.nix
./nix/shells.nix
./packages
];
systems = [
"x86_64-linux"
];
perSystem = {
_module.args = {
affinityPath = "$([[ -z \"$XDG_DATA_HOME\" ]] && echo \"$HOME/.local/share/affinity\" || echo \"$XDG_DATA_HOME/affinity\")";
};
};
};
}