nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 lib,
4 stdenv,
5}:
6stdenv.mkDerivation {
7 __structuredAttrs = true;
8 strictDeps = true;
9
10 pname = "phytool";
11 version = "2-unstable-2024-07-14";
12
13 src = fetchFromGitHub {
14 owner = "wkz";
15 repo = "phytool";
16 rev = "bcf23b0261aa9f352ee4b944e30e3482158640a4";
17 hash = "sha256-8e2DVjG/2CtJ/+FLzMa1VKajJZfFqjD54XQAMY+0q3U=";
18 };
19
20 makeFlags = [
21 "PREFIX=$(out)"
22 ];
23
24 preInstall = ''
25 mkdir -p "$out/bin"
26 '';
27
28 meta = {
29 description = "Linux MDIO register access";
30 homepage = "https://github.com/wkz/phytool";
31 changelog = "https://github.com/wkz/phytool/releases";
32 license = lib.licenses.gpl2;
33 maintainers = [ lib.maintainers.connorbaker ];
34 };
35}