diff --git a/pkgs/by-name/ph/phytool/package.nix b/pkgs/by-name/ph/phytool/package.nix new file mode 100644 index 000000000000..9a19b0fa398c --- /dev/null +++ b/pkgs/by-name/ph/phytool/package.nix @@ -0,0 +1,35 @@ +{ + fetchFromGitHub, + lib, + stdenv, +}: +stdenv.mkDerivation { + __structuredAttrs = true; + strictDeps = true; + + pname = "phytool"; + version = "2-unstable-2024-07-14"; + + src = fetchFromGitHub { + owner = "wkz"; + repo = "phytool"; + rev = "bcf23b0261aa9f352ee4b944e30e3482158640a4"; + hash = "sha256-8e2DVjG/2CtJ/+FLzMa1VKajJZfFqjD54XQAMY+0q3U="; + }; + + makeFlags = [ + "PREFIX=$(out)" + ]; + + preInstall = '' + mkdir -p "$out/bin" + ''; + + meta = { + description = "Linux MDIO register access"; + homepage = "https://github.com/wkz/phytool"; + changelog = "https://github.com/wkz/phytool/releases"; + license = lib.licenses.gpl2; + maintainers = [ lib.maintainers.connorbaker ]; + }; +}