From 0290eba4529a8e798175bb9dc1349da81ba9d6f2 Mon Sep 17 00:00:00 2001 From: guochao Date: Sat, 22 Oct 2022 00:26:44 +0800 Subject: [PATCH] add default.nix for building --- default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..00fe82c --- /dev/null +++ b/default.nix @@ -0,0 +1,24 @@ +#{ lib, fetchFromGit, rustPlatform }: +with import {}; + +rustPlatform.buildRustPackage rec { + pname = "wireguard-vanity"; + version = "0.0.1"; + + nativeBuildInputs = with pkgs; [ + protobuf + ]; + + #src = builtins.fetchGit { + # url = "https://git.jeffthecoder.xyz/public/wireguard-vanity.git"; + #}; + src = ./.; + + cargoSha256 = "QTjYGphcCUU20cIGK27Se/yCih8snRw1tdOTOOi7tDQ="; + + meta = with lib; { + description = "A fast line-oriented regex search tool, similar to ag and ack"; + homepage = "https://git.jeffthecoder.xyz/public/wireguard-vanity"; + license = licenses.unlicense; + }; +}