Compare commits
1 Commits
9073513e27
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 34dcb870de |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
||||
proptest-regressions/
|
||||
.idea/
|
||||
result
|
||||
.direnv/
|
||||
|
||||
14
default.nix
14
default.nix
@@ -1,9 +1,4 @@
|
||||
{ pkgs ? import <nixpkgs> {
|
||||
overlays = [
|
||||
(import (fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"))
|
||||
];
|
||||
}
|
||||
}:
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
with pkgs;
|
||||
let
|
||||
agent = callPackage "${fetchgit {
|
||||
@@ -18,10 +13,7 @@ rustPlatform.buildRustPackage
|
||||
name = "wireguard-agent";
|
||||
src = nix-gitignore.gitignoreSource [ ] ./.;
|
||||
|
||||
nativeBuildInputs = [
|
||||
(rust-bin.fromRustupToolchainFile ./rust-toolchain.toml)
|
||||
agent
|
||||
];
|
||||
nativeBuildInputs = [ agent ];
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
@@ -33,6 +25,8 @@ rustPlatform.buildRustPackage
|
||||
|
||||
doCheck = false;
|
||||
|
||||
RUSTC_BOOTSTRAP = true;
|
||||
|
||||
AGENT_PATH = "${agent}/bin/agent_harness";
|
||||
KEY_FILE = "keyfile";
|
||||
RUST_LOG = "debug";
|
||||
|
||||
Reference in New Issue
Block a user