forked from ravindu644/Droidspaces-OSS
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
55 lines (43 loc) · 1.41 KB
/
Copy pathflake.nix
File metadata and controls
55 lines (43 loc) · 1.41 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
44
45
46
47
48
49
50
51
52
53
54
55
{
description = "Droidspaces - High-performance Container Runtime";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/c6e5ca3c836a5f4dd9af9f2c1fc1c38f0fac988a";
nixpkgs-with-systemd-v259.url = "github:NixOS/nixpkgs/b86751bc4085f48661017fa226dee99fab6c651b";
nixpkgs-with-systemd-v257.url = "github:NixOS/nixpkgs/3cbe716e2346710d6e1f7c559363d14e11c32a4";
flake-parts.url = "github:hercules-ci/flake-parts";
import-tree.url = "github:vic/import-tree";
artifacts = {
url = "github:loystonpais/Droidspaces-OSS/artifacts";
flake = false;
};
finix.url = "github:finix-community/finix?ref=main";
};
outputs = inputs @ {
flake-parts,
nixpkgs,
...
}:
flake-parts.lib.mkFlake {
inherit inputs;
specialArgs = rec {
version = let
header = builtins.readFile ./src/droidspace.h;
match = builtins.match ".*#define DS_VERSION \"([^\"]+)\".*" (lib.replaceStrings ["\n"] [" "] header);
in
if match == null
then "0.0.0"
else builtins.head match;
binSource = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./Makefile
./LICENSE
./src
];
};
androidAppSource = ./Android;
systems = ["x86_64-linux" "aarch64-linux"];
lib = nixpkgs.lib;
};
} (inputs.import-tree ./nix);
}