-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
40 lines (34 loc) · 798 Bytes
/
Copy pathpackage.nix
File metadata and controls
40 lines (34 loc) · 798 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
32
33
34
35
36
37
38
39
40
{
pkgs ? import <nixpkgs> {},
lib,
...
}:
pkgs.rustPlatform.buildRustPackage rec {
pname = "mudras";
version = (builtins.fromTOML (lib.readFile ./Cargo.toml)).package.version;
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
# outputHashes = {
# "tappers-0.4.2" = "sha256-kx/gLngL7+fH5JmJTVTGawyNdRde59dbFdrzermy/CE=";
# };
};
# disable tests
checkType = "debug";
doCheck = false;
nativeBuildInputs = with pkgs; [
installShellFiles
pkg-config
# llvmPackages.clang
# clang
];
buildInputs = with pkgs; [
openssl
pkg-config
# libs
udev
# rust vmm uses latest stable and oxalica tend to lag behind.break
# so we temporary force use of beta.
(rust-bin.fromRustupToolchainFile ./rust-toolchain.toml)
];
}