summaryrefslogtreecommitdiff
path: root/pkgs/by-name/dh/dhcpm/package.nix
blob: 36b8e0ef12f6589f0183f7eea1cee3381e34d595 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  fetchFromGitHub,
  lib,
  nix-update-script,
  rustPlatform,
}:

rustPlatform.buildRustPackage rec {
  pname = "dhcpm";
  version = "0.2.3";

  src = fetchFromGitHub {
    owner = "leshow";
    repo = "dhcpm";
    tag = "v${version}";
    hash = "sha256-vjKN9arR6Os3pgG89qmHt/0Ds5ToO38tLsQBay6VEIk=";
  };

  cargoHash = "sha256-L6+/buzhYoLdFh7x8EmT37JyY5Pr7oFzyOGbhvgNvlw=";

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "CLI tool for constructing & sending DHCP messages";
    homepage = "https://github.com/leshow/dhcpm";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jmbaur ];
    mainProgram = "dhcpm";
  };
}