From ccb18075a544960615bed3e95ff1f5c3c0e6a414 Mon Sep 17 00:00:00 2001 From: Aaron Kaiser Date: Mon, 13 May 2024 14:13:33 +0200 Subject: [PATCH] Add nix derivation --- .gitignore | 1 + default.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 default.nix 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="; +}