2015-06-07 22:13:44 +00:00
|
|
|
{ stdenv, fetchgit, flex, bison }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dtc-${version}";
|
|
|
|
version = "1.4.1";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "0z7yrv0sdhsh5wwy7yd1fvs4pqaq0n9m5i8w65lyibg77ahkasdg";
|
|
|
|
};
|
|
|
|
|
2015-06-30 07:30:41 +00:00
|
|
|
nativeBuildInputs = [ flex bison ];
|
2015-06-07 22:13:44 +00:00
|
|
|
|
|
|
|
installFlags = [ "INSTALL=install" "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Device Tree Compiler";
|
|
|
|
homepage = https://git.kernel.org/cgit/utils/dtc/dtc.git;
|
|
|
|
license = licenses.gpl2; # dtc itself is GPLv2, libfdt is dual GPL/BSD
|
|
|
|
maintainers = [ maintainers.dezgeg ];
|
2016-02-03 02:25:54 +00:00
|
|
|
platforms = platforms.unix;
|
2015-06-07 22:13:44 +00:00
|
|
|
};
|
|
|
|
}
|