-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
59 lines (53 loc) · 1.37 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
{
description = "Paralload - A download tool that uses multiple HTTP(S) connections with byte ranges";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = {
flake-parts,
self,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = [
"aarch64-linux"
"x86_64-linux"
];
perSystem = {
system,
pkgs,
...
}:
with pkgs; let
nativeBuildInputs = [
pkg-config
];
buildInputs = [
glfw
xorg.libX11.dev
xorg.libXcursor
xorg.libXft
xorg.libXi
xorg.libXinerama
xorg.libXrandr
xorg.libXxf86vm
];
in {
devShells.default = mkShell {
name = "paralload";
inherit nativeBuildInputs buildInputs;
};
packages = rec {
paralload = buildGoModule {
pname = "paralload";
version = self.shortRev or self.dirtyShortRev;
src = lib.cleanSource ./.;
vendorHash = "sha256-q0RVXDdH8+cdCfY2PrMpE8lDlxo3lQgar9WtSjjwioc=";
inherit nativeBuildInputs buildInputs;
};
default = paralload;
};
};
};
}