Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 fetchFromGitHub,
3 lib,
4 nix-update-script,
5 rustPlatform,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "dhcpm";
10 version = "0.2.3";
11
12 src = fetchFromGitHub {
13 owner = "leshow";
14 repo = "dhcpm";
15 tag = "v${version}";
16 hash = "sha256-vjKN9arR6Os3pgG89qmHt/0Ds5ToO38tLsQBay6VEIk=";
17 };
18
19 cargoHash = "sha256-L6+/buzhYoLdFh7x8EmT37JyY5Pr7oFzyOGbhvgNvlw=";
20
21 passthru.updateScript = nix-update-script { };
22
23 meta = {
24 description = "Dhcpm is a CLI tool for constructing & sending DHCP messages";
25 homepage = "https://github.com/leshow/dhcpm";
26 license = lib.licenses.mit;
27 maintainers = [ lib.maintainers.jmbaur ];
28 mainProgram = "dhcpm";
29 };
30}