at 17.09-beta 24 lines 684 B view raw
1{ stdenv, fetchgit, flex, bison }: 2 3stdenv.mkDerivation rec { 4 name = "dtc-${version}"; 5 version = "1.4.4"; 6 7 src = fetchgit { 8 url = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git"; 9 rev = "refs/tags/v${version}"; 10 sha256 = "1pxp7700b3za7q4fnsnxx6i8v66rnr8p6lyi7jf684y1hq5ynlnf"; 11 }; 12 13 nativeBuildInputs = [ flex bison ]; 14 15 installFlags = [ "INSTALL=install" "PREFIX=$(out)" ]; 16 17 meta = with stdenv.lib; { 18 description = "Device Tree Compiler"; 19 homepage = https://git.kernel.org/cgit/utils/dtc/dtc.git; 20 license = licenses.gpl2; # dtc itself is GPLv2, libfdt is dual GPL/BSD 21 maintainers = [ maintainers.dezgeg ]; 22 platforms = platforms.unix; 23 }; 24}