2015-06-07 23:13:44 +01:00
|
|
|
{ stdenv, fetchgit, flex, bison }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dtc-${version}";
|
2017-04-09 19:44:10 +01:00
|
|
|
version = "1.4.4";
|
2015-06-07 23:13:44 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git";
|
|
|
|
rev = "refs/tags/v${version}";
|
2017-04-09 19:44:10 +01:00
|
|
|
sha256 = "1pxp7700b3za7q4fnsnxx6i8v66rnr8p6lyi7jf684y1hq5ynlnf";
|
2015-06-07 23:13:44 +01:00
|
|
|
};
|
|
|
|
|
2015-06-30 08:30:41 +01:00
|
|
|
nativeBuildInputs = [ flex bison ];
|
2015-06-07 23:13:44 +01: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 23:13:44 +01:00
|
|
|
};
|
|
|
|
}
|