!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

579 Members
129 Servers

Load older messages


SenderMessageTime
11 Nov 2021
@artturin:matrix.orgArtturini used 269 because it said the file was generated with it22:12:01
@artturin:matrix.orgArtturinother distros run autogen https://github.com/archlinux/svntogit-packages/blob/da001b08371f2dd1c64aaf1767af0ea9e3c6cdf1/trunk/PKGBUILD#L3722:20:09
@artturin:matrix.orgArtturinbut we dont even have that file22:20:24
@artturin:matrix.orgArtturin *

but we dont even have that file
will try

src = fetchFromGitLab {
  domain = "gitlab.gnome.org";
  owner = "GNOME";
  repo = "gtk";
  rev = "68631945733158f164427db84f01301d7e875763";
  sha256 = "sha256-PFSW5x1krevEBY66AutYUD/upcTLUbbDw3zQsVlA3Zg=";
};
22:30:14
@artturin:matrix.orgArtturin
diff --git a/pkgs/development/libraries/gtk/2.x.nix b/pkgs/development/libraries/gtk/2.x.nix
index bbf20d60970..23a1b556bfa 100644
--- a/pkgs/development/libraries/gtk/2.x.nix
+++ b/pkgs/development/libraries/gtk/2.x.nix
@@ -1,5 +1,5 @@
-{ config, lib, substituteAll, stdenv, fetchurl, pkg-config, gettext, glib, atk, pango, cairo, perl, xorg
-, gdk-pixbuf, xlibsWrapper, gobject-introspection
+{ config, lib, substituteAll, stdenv, fetchFromGitLab, pkg-config, gettext, glib, atk, pango, cairo, perl, xorg
+, gdk-pixbuf, xlibsWrapper, gobject-introspection, buildPackages, autoreconfHook269, gtk-doc
 , xineramaSupport ? stdenv.isLinux
 , cupsSupport ? config.gtk2.cups or stdenv.isLinux, cups
 , gdktarget ? if stdenv.isDarwin then "quartz" else "x11"
@@ -23,9 +23,12 @@ stdenv.mkDerivation rec {
   pname = "gtk+";
   version = "2.24.33";
 
-  src = fetchurl {
-    url = "mirror://gnome/sources/gtk+/2.24/${pname}-${version}.tar.xz";
-    sha256 = "rCrHV/WULTGKMRpUsMgLXvKV8pnCpzxjL2v7H/Scxto=";
+  src = fetchFromGitLab {
+    domain = "gitlab.gnome.org";
+    owner = "GNOME";
+    repo = "gtk";
+    rev = "68631945733158f164427db84f01301d7e875763";
+    sha256 = "sha256-PFSW5x1krevEBY66AutYUD/upcTLUbbDw3zQsVlA3Zg=";
   };
 
   outputs = [ "out" "dev" "devdoc" ];
@@ -38,7 +41,7 @@ stdenv.mkDerivation rec {
     gtkCleanImmodulesCache
   ];
 
-  nativeBuildInputs = setupHooks ++ [ perl pkg-config gettext gobject-introspection ];
+  nativeBuildInputs = setupHooks ++ [ perl pkg-config gettext gobject-introspection autoreconfHook269 gtk-doc ];
 
   patches = [
     ./patches/2.0-immodules.cache.patch
@@ -61,9 +64,13 @@ stdenv.mkDerivation rec {
     ++ optionals cupsSupport [ cups ]
     ++ optionals stdenv.isDarwin [ AppKit Cocoa ];
 
-  preConfigure = if (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11" && stdenv.isDarwin) then ''
-    MACOSX_DEPLOYMENT_TARGET=10.16
-  '' else null;
+    preAutoreconf = ''
+      NOCONFIGURE=1 ./autogen.sh
+    '';
+
+    preConfigure = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11" && stdenv.isDarwin) ''
+      MACOSX_DEPLOYMENT_TARGET=10.16
+    '';
 
   configureFlags = [
     "--with-gdktarget=${gdktarget}"

22:44:54
@artturin:matrix.orgArtturin

with this i get to

gtk+-aarch64-unknown-linux-gnu> *** gtkbuiltincache.h is not in the tree, and cannot be built
gtk+-aarch64-unknown-linux-gnu> *** because you don't have libpng, or (when cross-compiling) you
gtk+-aarch64-unknown-linux-gnu> *** don't have a prebuilt gtk-update-icon-cache on the build system.
22:45:09
12 Nov 2021
@rick:matrix.ciphernetics.nlRick (Mindavi)Hmm, so it keeps asking for that binary regardless 😕06:24:51
@sternenseemann:systemli.orgsterni lib.systems.elaborate { system = "riscv64-none-elf" ; } != lib.systems.elaborate { system = "riscv64-unknown-none-elf" ; } 15:34:52
@sternenseemann:systemli.orgsterni Alyssa Ross: smells like a bug? 15:35:01
@sternenseemann:systemli.orgsterni the latter yields riscv64-none without the elf as the system 15:36:33
@qyliss:fairydust.spaceAlyssa RossI didn't know system could take that sort of format16:05:47
@sternenseemann:systemli.orgsterni I think the second part of system can have any number of dashes in practice 16:14:15
@sternenseemann:systemli.orgsterniwell, what do I know16:14:38
@sternenseemann:systemli.orgsternifunilly I've seen riscv64-unknown-elf for this a lot16:14:57
@sternenseemann:systemli.orgsternibut I don't know if that is LLVM? or something else?16:15:10
@sternenseemann:systemli.orgsterni interestingly "none" always has unknown execformat in parsed 16:18:15
@sternenseemann:systemli.orgsternialthough it should be elf?16:18:20
@sternenseemann:systemli.orgsternifor none-elf that is16:18:32
@mic92:nixos.devMic92qyliss: what cross target are you working on?17:09:05
@AleXoundOS:matrix.org@AleXoundOS:matrix.org

Hi. I experience the following situation:
nix-repl> pkgs.stdenv.hostPlatform.gcc
{ abi = "32"; arch = "mips32r2"; }
nix-repl> pkgs.pkgsStatic.stdenv.hostPlatform.gcc
{ abi = "n32"; arch = "loongson2f"; float = "hard"; }

What's the proper way of building statically?

21:30:37
@AleXoundOS:matrix.org@AleXoundOS:matrix.orgLooks like I fall into https://github.com/NixOS/nixpkgs/blob/cf0519854227bac9f429c8b5129a75168cc4de26/lib/systems/platforms.nix#L520. So it overwrites my needed arch and abi just because it's mipsel (but they are incompatible).21:57:01
@AleXoundOS:matrix.org@AleXoundOS:matrix.org * Looks like I fall into https://github.com/NixOS/nixpkgs/blob/cf0519854227bac9f429c8b5129a75168cc4de26/lib/systems/platforms.nix#L520. So it overwrites my needed arch and abi with fuloong2f_n32 properties just because it's mipsel (but they are incompatible).21:58:13
13 Nov 2021
@AleXoundOS:matrix.org@AleXoundOS:matrix.orgI've come to a conclusion that fuloong2f_n32/loongson2f runs actually on mips64el cpu, not mipsel. wikipedia states that n32 is 64-bit: https://en.wikipedia.org/wiki/Calling_convention#MIPS. nixpkgs defines mips64el properly here: https://github.com/NixOS/nixpkgs/blob/47036da610bdc8a1624605b7d2815d2acf07f604/lib/systems/parse.nix#L94. So https://github.com/NixOS/nixpkgs/blob/cf0519854227bac9f429c8b5129a75168cc4de26/lib/systems/platforms.nix#L520 seems to be wrong association.01:04:05
14 Nov 2021
@qyliss:fairydust.spaceAlyssa Rossmic92: I usually test with aarch64-multiplatform13:35:14
@sternenseemann:systemli.orgsternimaybe he means netbsd?15:05:24
@mic92:nixos.devMic92so you are building for aarch64-netbsd?15:37:44
@sternenseemann:systemli.orgsterniworking on as in testing for or working on getting working better?15:43:44
@sternenseemann:systemli.orgsterniAlyssa and John got NetBSD cross working was what I was referring to15:44:09
@sternenseemann:systemli.orgsterniI usually test cross compiling to riscv64-linux since I have binfmt_misc enabled for aarch64, so that would problems15:44:44
16 Nov 2021
@smbarber:matrix.orgsmbarber joined the room.21:34:28

Show newer messages


Back to Room ListRoom Version: 6