diff --git a/.gitignore b/.gitignore index 78f062f..8bad4af 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target *.csv +/result diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..4f53b42 --- /dev/null +++ b/default.nix @@ -0,0 +1,18 @@ +{ pkgs ? import { + overlays = [ + (import (fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz")) + ]; + } +}: +with pkgs; +rustPlatform.buildRustPackage +{ + name = "wireguard-client"; + src = nix-gitignore.gitignoreSource [ ] ./.; + + nativeBuildInputs = [ + (rust-bin.fromRustupToolchainFile ./rust-toolchain.toml) + ]; + + cargoSha256 = "sha256-3FnWeoFeD9/q16J0CpXL4/lIlP34jf1aUN6I8fBFZ0g="; +}