-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gi-graphene: fix dependency on graphene #262103
Conversation
I cannot figure out for the life of me how to test this. Specifically, it's quite unclear how to regenerate |
Can you drop the all-cabal-hashes update? It should be irrelevant, but would break package set regeneration. |
Drop the all-cabal-hashes commit and run |
Here we add the necessary dependency of gi-graphene on the graphene package.
dd81de3
to
2211535
Compare
I've dropped the spurious changes. Sadly, however, I am still unable to build
I am at quite a loss. |
I sent in part of the fix for |
@bgamari I marked However, it looks like your goal is to actually build $ git rev-parse HEAD
8a8ec371fe6bd092d180e12a0112a37448b4cb30
$ nix-build -A haskellPackages.gi-gdk_4_0_7
this derivation will be built:
/nix/store/sc7d83d14a9zy3yh901dhsxzf4y468y4-gi-gdk-4.0.7.drv
building '/nix/store/sc7d83d14a9zy3yh901dhsxzf4y468y4-gi-gdk-4.0.7.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/z1hnp331svvqhkq9kc9yp5xkp0yqvs3q-ghc-9.4.7.
unpacking sources
unpacking source archive /nix/store/ki6xi1knjqdycyqg9wf2ariz3fm3y00r-gi-gdk-4.0.7.tar.gz
source root is gi-gdk-4.0.7
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file gi-gdk-4.0.7/stack.yaml
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/tmp.T6d2BbrBJo/setup-package.conf.d -j8 +RTS -A64M -RTS -threaded -rtsopts
[1 of 2] Compiling Main ( Setup.hs, /build/tmp.T6d2BbrBJo/Main.o )
[2 of 2] Linking Setup
gcc: fatal error: cannot execute ‘/nix/store/0b9bsznqs6pdg42dxcwvrlmarjn2p6a1-gcc-12.3.0/libexec/gcc/x86_64-unknown-linux-gnu/12.3.0/collect2’: execv: Argument list too long
compilation terminated.
ghc: `cc' failed in phase `Linker'. (Exit code: 1) There is a lot more written about this error |
I'm out of my league here, but on the off-chance this is of any help - I ran into both "missing dependencies" and "arguments too long" while trying to build a overlay = final: prev: let
gtkDeps = [
final.graphene final.gdk-pixbuf final.gtk4
final.pcre final.pcre2
final.util-linux.dev final.libselinux final.libsepol
final.fribidi final.libthai final.libdatrie final.xorg.libXdmcp
];
in {
haskell = prev.haskell // {
packageOverrides = hfinal: hprev:
prev.haskell.packageOverrides hfinal hprev // {
gi-graphene = (hfinal.callHackage "gi-graphene" "1.0.5" {
graphene-gobject = final.graphene;
}).overrideAttrs (oldAttrs: { strictDeps = true; });
gi-gsk = (hfinal.callHackage "gi-gsk" "4.0.7" { }).overrideAttrs (oldAttrs: { strictDeps = true; buildInputs = gtkDeps; });
gi-gdk = (hfinal.callHackage "gi-gdk" "4.0.7" { }).overrideAttrs (oldAttrs: { strictDeps = true; buildInputs = gtkDeps; });
gi-gtk = (hfinal.callHackage "gi-gtk" "4.0.8" { }).overrideAttrs (oldAttrs: { strictDeps = true; buildInputs = gtkDeps; });
"${name}" = hfinal.callCabal2nix name ./. { };
};
};
"${name}" = final.haskell.lib.compose.justStaticExecutables final.haskellPackages.${name};
}; Haven't done much but draw some pixels to the screen, so no idea if it'll break somewhere else at runtime, but so far it hasn't complained. |
This was resolved in cabal2nix. |
Description of changes
Here we add the necessary dependency of gi-graphene on the graphene package.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)