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; + }; +}