nixpkgs/pkgs/development/compilers/dtc/default.nix

25 lines
684 B
Nix
Raw Normal View History

{ stdenv, fetchgit, flex, bison }:
stdenv.mkDerivation rec {
name = "dtc-${version}";
2016-09-16 21:54:07 +00:00
version = "1.4.2";
src = fetchgit {
url = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git";
rev = "refs/tags/v${version}";
2016-09-16 21:54:07 +00:00
sha256 = "0pwhbw930pnksrmkimqqwp4nqj9mmh06bs5b8p5l2cnhnh8lxn3j";
};
nativeBuildInputs = [ flex bison ];
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;
};
}