-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
47 lines (41 loc) · 1.05 KB
/
Copy pathflake.nix
File metadata and controls
47 lines (41 loc) · 1.05 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
{
description = "A fast, lightweight, secure Git LFS server";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{ self, nixpkgs }:
let
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
overlays.default = final: _prev: {
lfsx = final.callPackage ./packaging/nix/lfsx.nix { };
};
packages = forAllSystems (
system:
let
lfsx = nixpkgs.legacyPackages.${system}.callPackage ./packaging/nix/lfsx.nix { };
in
{
inherit lfsx;
default = lfsx;
}
);
apps = forAllSystems (system: {
default = self.apps.${system}.lfsx-server;
lfsx-server = {
type = "app";
program = "${self.packages.${system}.lfsx}/bin/lfsx-server";
};
lfsx = {
type = "app";
program = "${self.packages.${system}.lfsx}/bin/lfsx";
};
});
};
}