Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 16.09 24 lines 684 B view raw
1{ stdenv, fetchgit, flex, bison }: 2 3stdenv.mkDerivation rec { 4 name = "dtc-${version}"; 5 version = "1.4.1"; 6 7 src = fetchgit { 8 url = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git"; 9 rev = "refs/tags/v${version}"; 10 sha256 = "0wcn9x2vynwlfxk5c6jrf8lz7qvm1sbb9gh27drk1mx8msdh5hd5"; 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}