typeable / nixpkgs-stackage Goto Github PK
View Code? Open in Web Editor NEWStackage overlay for Nixpkgs
Stackage overlay for Nixpkgs
LTS 11 has now replaced LTS 10.
https://www.stackage.org/lts-10.4
What is the process to update the package set?
nix-env -i stackage2nix
Preprocessing library for hlibgit2-0.18.0.16..
cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
cc1: some warnings being treated as errors
compiling dist/build/Bindings/Libgit2/Attr_hsc_make.c failed (exit code 1)
command was: /nix/store/iw94llkj05wgaz268mlzvgx8jkbi1ss0-gcc-wrapper-7.3.0/bin/gcc -c dist/build/Bindings/Libgit2/Attr_hsc_make.c -o dist/build/Bindings/Libgit2/Attr_hsc_make.o -fno-stack-protector -fno-stack-protector -D__GLASGOW_HASKELL__=804 -Dlinux_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Ilibgit2/include -Ilibgit2/src -Ilibgit2/deps/http-parser -Ilibgit2/src/unix -I/nix/store/hm94hdjk239fqicmygl3a48zqqqil14j-openssl-1.0.2p-dev/include -Idist/build/libgit2/include -Idist/build/libgit2/src -Idist/build/libgit2/deps/http-parser -Idist/build/libgit2/src/unix -I/nix/store/hm94hdjk239fqicmygl3a48zqqqil14j-openssl-1.0.2p-dev/include -DGIT_THREADS -D_FILE_OFFSET_BITS=64 -DGIT_SSL -Wno-format -D_GNU_SOURCE -DOPENSSL_SHA1 -Wno-deprecated-declarations -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/nix/store/dhrcg5drmihd0s4cmavg4dj5x9h628xm-zlib-1.2.11-dev/include -I/nix/store/c9dx8amqj2ciphgb80iksvaysw04k3q8-ghc-8.4.3/lib/ghc-8.4.3/bytestring-0.10.8.2/include -I/nix/store/zavifyq1i5p14gkldincwbl3r82z00y2-bindings-DSL-1.0.25/lib/ghc-8.4.3/x86_64-linux-ghc-8.4.3/bindings-DSL-1.0.25-54Ns4yFvnsmG51FXSFcoWY/include -I/nix/store/c9dx8amqj2ciphgb80iksvaysw04k3q8-ghc-8.4.3/lib/ghc-8.4.3/base-4.11.1.0/include -I/nix/store/ipba8r4418ls0j55p5y5gi4zmg2kna5n-gmp-6.1.2-dev/include -I/nix/store/c9dx8amqj2ciphgb80iksvaysw04k3q8-ghc-8.4.3/lib/ghc-8.4.3/integer-gmp-1.0.2.0/include -I/nix/store/c9dx8amqj2ciphgb80iksvaysw04k3q8-ghc-8.4.3/lib/ghc-8.4.3/include -I/nix/store/c9dx8amqj2ciphgb80iksvaysw04k3q8-ghc-8.4.3/lib/ghc-8.4.3/include/
builder for '/nix/store/q0qwvkfk55qfvbdvxy1ng11rjy8avma5-hlibgit2-0.18.0.16.drv' failed with exit code 1
building '/nix/store/shln9gvxz5dd1maqdn9rp98rwalxqn8c-foundation-0.0.21.drv'...
cannot build derivation '/nix/store/6dmwyvybc6n3i9bjgz8vn1n43kk6z97b-gitlib-libgit2-3.1.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6ks072jmjdc5laygkns77245w0r8qkcj-stackage2nix-0.7.2.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/f0maklm58zgwbj8xbfn7smlxhziswcpx-stackage2nix-0.7.2.drv': 1 dependencies couldn't be built
error: build of '/nix/store/f0maklm58zgwbj8xbfn7smlxhziswcpx-stackage2nix-0.7.2.drv' failed
This overlay is amazing! Thank you for doing this. I'm already using it for one of my Haskell projects and I'm planning to integrate it into all of them soon.
It would be even better if you removed all of the <nixpkgs/pkgs/...>
path impurities, so that you could pin the nixpkgs
used throughout the project. It appears that you only use this for importing functions that nixpkgs
doesn't export via pkgs
, but it should still make debugging issues much easier since you would know, based on the nixpkgs-stackage
revision you're using, which nixpkgs
is being used for functions, as well.
I implement this technique in all of my overlays with great success. For example, here is where I create the "fetch nixpkgs
" function for one of my overlays:
and here is an example of where I use it in the same overlay to use some unexported nixpkgs
functionality:
To update the repository on a regular basis:
stackage2nix-static
executable #1update.sh
as a daily Travis cron job and commit the changes.I've installed this overlay but installing stackage2nix
fails:
error: anonymous function at /nix/store/p3dcl2p61lbz971qi799iq62qkfydgkq-nixpkgs-18.03pre123927.5be70c39f3e/nixpkgs/pkgs/development/haskell-modules/make-package-set.nix:4:1 called with unexpected argument 'buildHaskellPackages', at /nix/store/p3dcl2p61lbz971qi799iq62qkfydgkq-nixpkgs-18.03pre123927.5be70c39f3e/nixpkgs/lib/customisation.nix:74:12
(use '--show-trace' to show detailed location information)
I guess it's something related to typeable/stackage2nix#57 but at the moment unfortunately I don't understand the internals good enough
error: while evaluating the attribute ‘updateLtsSh’ of the derivation ‘nixpkgs-typeable-update-script’ at /nix/store/inyp9ffpwkqcp0z94cr3a1wi6shrxcas-nixpkgs-18.03pre122585.b212125b541/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:98:11:
while evaluating ‘override’ at /nix/store/inyp9ffpwkqcp0z94cr3a1wi6shrxcas-nixpkgs-18.03pre122585.b212125b541/nixpkgs/lib/customisation.nix:78:20, called from /home/arian/.config/nixpkgs/overlays/nixpkgs-stackage/update.nix:5:9:
while evaluating ‘makeOverridable’ at /nix/store/inyp9ffpwkqcp0z94cr3a1wi6shrxcas-nixpkgs-18.03pre122585.b212125b541/nixpkgs/lib/customisation.nix:72:24, called from /nix/store/inyp9ffpwkqcp0z94cr3a1wi6shrxcas-nixpkgs-18.03pre122585.b212125b541/nixpkgs/lib/customisation.nix:78:29:
anonymous function at /home/arian/.config/nixpkgs/overlays/nixpkgs-stackage/lib.nix:1:1 called with unexpected argument ‘cacheVersion’, at /nix/store/inyp9ffpwkqcp0z94cr3a1wi6shrxcas-nixpkgs-18.03pre122585.b212125b541/nixpkgs/lib/customisation.nix:74:12
This project helped us quite a lot in setting up our Nix+Haskell ecosystem. However, it seems to be stale, as there are no updates to definitions in the last 4 months, even tho there have been many new stackage releases. Please clarify the future of this project, when should we expect any new updates, or should we abandon it.
From my Hydra jobs for a package that builds against the nixpkgs-unstable
channel and nixpkgs
master
:
in job ‘lts-9’:
anonymous function at �[1m/nix/store/pl7kpwxc7lnkc7n44k5zbzxgfm46jczr-git-export/pkgs/development/haskell-modules/make-package-set.nix�[0m:4:1 called without required argument 'buildHaskellPackages', at �[1m/nix/store/pl7kpwxc7lnkc7n44k5zbzxgfm46jczr-git-export/lib/customisation.nix�[0m:74:12
It appears that the recent cross fixes in nixpkgs
made the buildHaskellPackages
argument mandatory. See, e.g.:
https://github.com/NixOS/nixpkgs/blob/6d788e9063a5aaef197fc6cdb31e8d903d8c2218/pkgs/top-level/haskell-packages.nix#L129
https://github.com/NixOS/nixpkgs/blob/6d788e9063a5aaef197fc6cdb31e8d903d8c2218/pkgs/development/haskell-modules/default.nix#L2
Here is the upstream commit:
Currently build fails with:
$ nix-build nixpkgs.nix -A stackage2nix-static
...
[ 7 of 15] Compiling Stack.Config.TH ( src/Stack/Config/TH.hs, dist/build/Stack/Config/TH.o )
[ 8 of 15] Compiling Stack.Config.Yaml ( src/Stack/Config/Yaml.hs, dist/build/Stack/Config/Yaml.o )
/nix/store/4576wq2aj36yhdqck4rfyxg16c1s0r1y-icu4c-58.2-static/lib/libicuuc.a(putil.ao): In function `uprv_dl_open_58':
(.text+0x1ba2): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/nix/store/zi17ydzr9x1kqjcpfjr93iwg1frpmv8s-binutils-2.28.1/bin/ld: /nix/store/pymp4cq49z4whxzjzys4by7dij0axdb0-gcc-6.4.0/lib/gcc/x86_64-unknown-linux-gnu/6.4.0/crtbeginT.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
/nix/store/zi17ydzr9x1kqjcpfjr93iwg1frpmv8s-binutils-2.28.1/bin/ld: /nix/store/1h1v44a7qj8pskcw75dcs84gsj4gy3x5-glibc-2.25-49-static/lib/libpthread.a(elision-lock.o): .preinit_array section is not allowed in DSO
/nix/store/zi17ydzr9x1kqjcpfjr93iwg1frpmv8s-binutils-2.28.1/bin/ld: failed to set dynamic section sizes: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
<no location info>: error:
`cc' failed in phase `Linker'. (Exit code: 1)
[ 9 of 15] Compiling Stack.Types ( src/Stack/Types.hs, dist/build/Stack/Types.o )
builder for ‘/nix/store/x7c9rkivww8ypn4bmxsnnngv0fmbs860-stackage2nix-0.5.0.drv’ failed with exit code 1
The last update revealed that current naming can be ambiguous. There is a conflict between lts-1.10
and lts-11.0
which result to lts-110
Nix key, see stackage/default.nix
Nix doesn't allow dots in the attribute keys. Removing the dots, the standard Nix way to deal with that seems doesn't work in our case.
Come up with a different naming scheme.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.