-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
80 lines (60 loc) · 2 KB
/
flake.nix
File metadata and controls
80 lines (60 loc) · 2 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# SPDX-FileCopyrightText: 2024-2025 Caleb Depatie
#
# SPDX-License-Identifier: 0BSD
# The flake allows locking dependencies. Given our use of the relatively quick changing
# Zig, having more control over when we upgrade is useful
{
description = "LakeFS provides filesystem querying based on 'tags'.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
build_pkgs = with pkgs; [
gcc
meson
ninja
reuse
dmd
docutils
argparse
fuse
spdlog
];
pkg_meta = with pkgs.lib; {
license = [ licenses.bsd3 ];
maintainers = [ "Caleb Depatie" "Conner Tenn" ];
};
in {
# Built via `nix build` and run via `nix run`
packages.default = pkgs.stdenv.mkDerivation rec {
pname = "lakefs";
version = "0.2.3";
src = self;
nativeBuildInputs = build_pkgs;
mesonBuildType = "release";
enableParallelBuilding = true;
meta = pkg_meta;
};
packages.cli = pkgs.stdenv.mkDerivation rec {
pname = "lakefs-ctl";
version = "0.2.1";
src = self;
nativeBuildInputs = build_pkgs;
mesonBuildType = "release";
enableParallelBuilding = true;
meta = pkg_meta;
};
# Built via `nix build` and run via `nix run`
# Building as a package not required
# Entered with `nix develop`
devShells.default = pkgs.mkShell {
packages = build_pkgs;
};
}
);
}