patches and low-level development discussion
 help / color / mirror / code / Atom feed
33369fb1fcc111cac0daa40ecf4a77c1c441f03d blob 1168 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
{ stdenv, lib, fetchgit, flex, bison, pkg-config, which
, pythonSupport ? false, python ? null, swig, libyaml
}:

stdenv.mkDerivation rec {
  pname = "dtc";
  version = "1.6.1";

  src = fetchgit {
    url = "https://git.kernel.org/pub/scm/utils/dtc/dtc.git";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-gx9LG3U9etWhPxm7Ox7rOu9X5272qGeHqZtOe68zFs4=";
  };

  patches = [
    ./0001-Use-libfdt.a-if-building-staticly.patch
  ];

  buildInputs = [ libyaml ];
  nativeBuildInputs = [ flex bison pkg-config which ] ++ lib.optionals pythonSupport [ python swig ];

  postPatch = ''
    patchShebangs pylibfdt/
  '';

  makeFlags = [ "PYTHON=python" ];
  installFlags = [ "INSTALL=install" "PREFIX=$(out)" "SETUP_PREFIX=$(out)" ];

  # Checks are broken on aarch64 darwin
  # https://github.com/NixOS/nixpkgs/pull/118700#issuecomment-885892436
  doCheck = !stdenv.isDarwin;

  meta = with lib; {
    description = "Device Tree Compiler";
    homepage = "https://git.kernel.org/cgit/utils/dtc/dtc.git";
    license = licenses.gpl2Plus; # dtc itself is GPLv2, libfdt is dual GPL/BSD
    maintainers = [ maintainers.dezgeg ];
    platforms = platforms.unix;
  };
}
debug log:

solving 33369fb1fcc ...
found 33369fb1fcc in https://spectrum-os.org/lists/archives/spectrum-devel/20220520095257.23038-1-tero.tervala@unikie.com/
found 04dca4772a9 in https://spectrum-os.org/git/nixpkgs
preparing index
index prepared:
100644 04dca4772a987a655c35e933ca38e0ca903e3218	pkgs/development/compilers/dtc/default.nix

applying [1/1] https://spectrum-os.org/lists/archives/spectrum-devel/20220520095257.23038-1-tero.tervala@unikie.com/
diff --git a/pkgs/development/compilers/dtc/default.nix b/pkgs/development/compilers/dtc/default.nix
index 04dca4772a9..33369fb1fcc 100644

Checking patch pkgs/development/compilers/dtc/default.nix...
Applied patch pkgs/development/compilers/dtc/default.nix cleanly.

index at:
100644 33369fb1fcc111cac0daa40ecf4a77c1c441f03d	pkgs/development/compilers/dtc/default.nix

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).