Add nix derivation

This commit is contained in:
2024-05-13 14:13:33 +02:00
parent e278bfec4e
commit ccb18075a5
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/target
*.csv
/result

18
default.nix Normal file
View File

@@ -0,0 +1,18 @@
{ pkgs ? import <nixpkgs> {
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=";
}