add default.nix for building

This commit is contained in:
guochao 2022-10-22 00:26:44 +08:00
parent 05e5344b92
commit 0290eba452
Signed by: guochao
GPG Key ID: 79F7306D2AA32FC3

24
default.nix Normal file
View File

@ -0,0 +1,24 @@
#{ lib, fetchFromGit, rustPlatform }:
with import <nixpkgs> {};
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;
};
}