diff --git a/pkgs/development/ocaml-modules/tuntap/default.nix b/pkgs/development/ocaml-modules/tuntap/default.nix index d1d2579e39df..3f07f7794e93 100644 --- a/pkgs/development/ocaml-modules/tuntap/default.nix +++ b/pkgs/development/ocaml-modules/tuntap/default.nix @@ -4,26 +4,20 @@ fetchurl, ipaddr, macaddr, - cmdliner, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "tuntap"; - version = "2.0.0"; - - duneVersion = "3"; - - minimalOCamlVersion = "4.04.2"; + version = "2.0.1"; src = fetchurl { - url = "https://github.com/mirage/ocaml-tuntap/releases/download/v${version}/tuntap-v${version}.tbz"; - sha256 = "12wmls28h3jzikwyfw08d5f7ycsc9njwzbhd3qk2l8jnf5rakfsa"; + url = "https://github.com/mirage/ocaml-tuntap/releases/download/v${finalAttrs.version}/tuntap-${finalAttrs.version}.tbz"; + hash = "sha256-J8YBl8w7xFloDqt/Xiz03KCIls5BR72VT8X/LYZMDN0="; }; propagatedBuildInputs = [ ipaddr macaddr - cmdliner ]; # tests manipulate network devices and use network @@ -34,6 +28,5 @@ buildDunePackage rec { description = "Bindings to the UNIX tuntap facility"; homepage = "https://github.com/mirage/ocaml-tuntap"; license = lib.licenses.isc; - mainProgram = "otunctl"; }; -} +})