default.nix (779B)
1 { 2 stdenv, 3 cmake, 4 fetchFromGitHub, 5 ... 6 }: 7 # let switchDotH = buildPackages.fetchurl { 8 # url = "https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob_plain;f=target/linux/generic/files/include/uapi/linux/switch.h;hb=99a188828713d6ff9c541590b08d4e63ef52f6d7"; 9 # sha256 = "15kmhhcpd84y4f45rf8zai98c61jyvkc37p90pcxirna01x33wi8"; 10 # name="switch.h"; 11 # }; 12 stdenv.mkDerivation { 13 src = fetchFromGitHub { 14 owner = "openwrt"; 15 repo = "odhcp6c"; 16 # this is the last revision before libubox was made a 17 # mandatory dependency 18 # https://github.com/openwrt/odhcp6c/pull/109/commits 19 rev = "5182e2b696ef21cb2df00e8e399e0af7c1b7bf6d"; 20 21 hash = "sha256-i4ApAgeJ9tk8cPKgyaOQG9gdQzPjl3BsDWcZOe/INeM="; 22 }; 23 name = "odhcp6c"; 24 nativeBuildInputs = [ cmake ]; 25 }