-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdefault.nix
More file actions
31 lines (31 loc) · 703 Bytes
/
default.nix
File metadata and controls
31 lines (31 loc) · 703 Bytes
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
# SPDX-FileCopyrightText: © 2021 Caleb Maclennan <caleb@alerque.com>
# SPDX-License-Identifier: GPL-3.0-only
{
lib,
libgit2,
naersk,
stdenv,
cargo,
rustc,
}:
let
cargoToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml));
in
naersk.lib."${stdenv.hostPlatform.system}".buildPackage rec {
src = ./.;
buildInputs = [
cargo
libgit2
rustc
];
CARGO_BUILD_INCREMENTAL = "false";
copyLibs = true;
name = cargoToml.package.name;
version = cargoToml.package.version;
meta = with lib; {
description = cargoToml.package.description;
homepage = cargoToml.package.homepage;
license = with licenses; [ mit ];
maintainers = with maintainers; [ ];
};
}