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