first commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
description = "DNS benchmarking tool written in Rust";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux"; # Adjust if you are on a different architecture (e.g., aarch64-linux)
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
packages.${system}.default = pkgs.rustPlatform.buildRustPackage {
|
||||
pname = "dns-bench";
|
||||
version = "0.14.0"; # Match the latest tag or version from GitHub
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "qwerty541";
|
||||
repo = "dns-bench";
|
||||
rev = "v0.14.0"; # Or a specific commit hash
|
||||
sha256 = "sha256-xkTCKIZF/ma0veWZ7L7tepUAgXnHOW/pKfcpg4sQcbQ="; # Leave placeholder first, Nix will tell you the correct hash on build
|
||||
};
|
||||
|
||||
cargoHash = "sha256-mHUmggC04/+dryl8fUH57UMBc1fqNI5Uchbhowfe1ow="; # Leave placeholder first
|
||||
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||
buildInputs = [ pkgs.openssl ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user