git.iko.soy/typeable/cabal2nix
on master help sign in
.travis.yml+70−53
since splitsnapshots
unifiedsplit
@@ -1,12 +1,14 @@
1# This Travis job script has been generated by a script via
1# This Travis job script has been generated by a script via
2#
2#
3−# haskell-ci '--installed=+all -Cabal' '--hlint' '--doctest' '--doctest-options=-i ../dist-newstyle/build/*/*/cabal2nix-*/build/autogen' '-o' '.travis.yml' 'cabal2nix.cabal'
3+# haskell-ci '--installed=+all -Cabal' '--hlint' '--doctest' '--doctest-options=-i ../dist-newstyle/build/*/*/cabal2nix-*/build/autogen' '-o' '.travis.yml' 'cabal2nix.cabal' '--head-hackage' '--head-hackage-jobs' '> 8.8'
4#
4#
5# For more information, see https://github.com/haskell-CI/haskell-ci
5# For more information, see https://github.com/haskell-CI/haskell-ci
6#
6#
7−# version: 0.3.20190413
7+# version: 0.9.20200306
8#
8#
9+version: ~> 1.0
9language: c
10language: c
11+os: linux
10dist: xenial
12dist: xenial
11git:
13git:
12 # whether to recursively clone submodules
14 # whether to recursively clone submodules
@@ -15,6 +17,7 @@ cache:
15 directories:
17 directories:
16 - $HOME/.cabal/packages
18 - $HOME/.cabal/packages
17 - $HOME/.cabal/store
19 - $HOME/.cabal/store
20+ - $HOME/.hlint
18before_cache:
21before_cache:
19 - rm -fv $CABALHOME/packages/hackage.haskell.org/build-reports.log
22 - rm -fv $CABALHOME/packages/hackage.haskell.org/build-reports.log
20 # remove files that are regenerated by 'cabal update'
23 # remove files that are regenerated by 'cabal update'
@@ -24,121 +27,135 @@ before_cache:
24 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
27 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
25 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
28 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
26 - rm -rfv $CABALHOME/packages/head.hackage
29 - rm -rfv $CABALHOME/packages/head.hackage
27−matrix:
30+jobs:
28 include:
31 include:
29− - compiler: ghc-8.6.4
32+ - compiler: ghc-8.10.1
30− addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.4","cabal-install-2.4"]}}
33+ addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.10.1","cabal-install-3.2"]}}
34+ os: linux
35+ - compiler: ghc-8.8.3
36+ addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.8.3","cabal-install-3.0"]}}
37+ os: linux
38+ - compiler: ghc-8.6.5
39+ addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.6.5","cabal-install-3.0"]}}
40+ os: linux
41+ allow_failures:
42+ - compiler: ghc-8.8.3
43+ - compiler: ghc-8.10.1
31before_install:
44before_install:
32 - HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
45 - HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
46+ - WITHCOMPILER="-w $HC"
47+ - HADDOCK=$(echo "/opt/$CC/bin/haddock" | sed 's/-/\//')
33 - HCPKG="$HC-pkg"
48 - HCPKG="$HC-pkg"
34 - unset CC
49 - unset CC
35 - CABAL=/opt/ghc/bin/cabal
50 - CABAL=/opt/ghc/bin/cabal
36 - CABALHOME=$HOME/.cabal
51 - CABALHOME=$HOME/.cabal
37 - export PATH="$CABALHOME/bin:$PATH"
52 - export PATH="$CABALHOME/bin:$PATH"
38 - TOP=$(pwd)
53 - TOP=$(pwd)
39− - HCNUMVER=$(( $(${HC} --numeric-version|sed -E 's/([0-9]+)\.([0-9]+)\.([0-9]+).*/\1 * 10000 + \2 * 100 + \3/') ))
54+ - "HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\\d+)\\.(\\d+)\\.(\\d+)(\\.(\\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')"
40 - echo $HCNUMVER
55 - echo $HCNUMVER
41− - CABAL="$CABAL -vnormal+nowrap+markoutput"
56+ - CABAL="$CABAL -vnormal+nowrap"
42 - set -o pipefail
57 - set -o pipefail
43− - |
44− echo 'function blue(s) { printf "\033[0;34m" s "\033[0m " }' >> .colorful.awk
45− echo 'BEGIN { state = "output"; }' >> .colorful.awk
46− echo '/^-----BEGIN CABAL OUTPUT-----$/ { state = "cabal" }' >> .colorful.awk
47− echo '/^-----END CABAL OUTPUT-----$/ { state = "output" }' >> .colorful.awk
48− echo '!/^(-----BEGIN CABAL OUTPUT-----|-----END CABAL OUTPUT-----)/ {' >> .colorful.awk
49− echo ' if (state == "cabal") {' >> .colorful.awk
50− echo ' print blue($0)' >> .colorful.awk
51− echo ' } else {' >> .colorful.awk
52− echo ' print $0' >> .colorful.awk
53− echo ' }' >> .colorful.awk
54− echo '}' >> .colorful.awk
55− - cat .colorful.awk
56− - |
57− color_cabal_output () {
58− awk -f $TOP/.colorful.awk
59− }
60− - echo text | color_cabal_output
61−install:
62− - ${CABAL} --version
63− - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
64 - TEST=--enable-tests
58 - TEST=--enable-tests
65 - BENCH=--enable-benchmarks
59 - BENCH=--enable-benchmarks
66− - GHCHEAD=${GHCHEAD-false}
60+ - HEADHACKAGE=false
61+ - if [ $HCNUMVER -ge 80800 ] ; then HEADHACKAGE=true ; fi
67 - rm -f $CABALHOME/config
62 - rm -f $CABALHOME/config
68 - |
63 - |
69 echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
64 echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
70 echo "remote-build-reporting: anonymous" >> $CABALHOME/config
65 echo "remote-build-reporting: anonymous" >> $CABALHOME/config
66+ echo "write-ghc-environment-files: always" >> $CABALHOME/config
71 echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
67 echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
72 echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
68 echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
73 echo "world-file: $CABALHOME/world" >> $CABALHOME/config
69 echo "world-file: $CABALHOME/world" >> $CABALHOME/config
74 echo "extra-prog-path: $CABALHOME/bin" >> $CABALHOME/config
70 echo "extra-prog-path: $CABALHOME/bin" >> $CABALHOME/config
75 echo "symlink-bindir: $CABALHOME/bin" >> $CABALHOME/config
71 echo "symlink-bindir: $CABALHOME/bin" >> $CABALHOME/config
72+ echo "installdir: $CABALHOME/bin" >> $CABALHOME/config
76 echo "build-summary: $CABALHOME/logs/build.log" >> $CABALHOME/config
73 echo "build-summary: $CABALHOME/logs/build.log" >> $CABALHOME/config
77 echo "store-dir: $CABALHOME/store" >> $CABALHOME/config
74 echo "store-dir: $CABALHOME/store" >> $CABALHOME/config
78 echo "install-dirs user" >> $CABALHOME/config
75 echo "install-dirs user" >> $CABALHOME/config
79 echo " prefix: $CABALHOME" >> $CABALHOME/config
76 echo " prefix: $CABALHOME" >> $CABALHOME/config
80 echo "repository hackage.haskell.org" >> $CABALHOME/config
77 echo "repository hackage.haskell.org" >> $CABALHOME/config
81 echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
78 echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
79+ - |
80+ if $HEADHACKAGE; then
81+ echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1/g')" >> $CABALHOME/config
82+ echo "repository head.hackage.ghc.haskell.org" >> $CABALHOME/config
83+ echo " url: https://ghc.gitlab.haskell.org/head.hackage/" >> $CABALHOME/config
84+ echo " secure: True" >> $CABALHOME/config
85+ echo " root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d" >> $CABALHOME/config
86+ echo " 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329" >> $CABALHOME/config
87+ echo " f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89" >> $CABALHOME/config
88+ echo " key-threshold: 3" >> $CABALHOME/config
89+ fi
90+install:
91+ - ${CABAL} --version
92+ - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
93+ - |
94+ echo "program-default-options" >> $CABALHOME/config
95+ echo " ghc-options: $GHCJOBS +RTS -M6G -RTS" >> $CABALHOME/config
82 - cat $CABALHOME/config
96 - cat $CABALHOME/config
83 - rm -fv cabal.project cabal.project.local cabal.project.freeze
97 - rm -fv cabal.project cabal.project.local cabal.project.freeze
84 - travis_retry ${CABAL} v2-update -v
98 - travis_retry ${CABAL} v2-update -v
85− - ${CABAL} v2-install -w ${HC} -j2 doctest --constraint='doctest ==0.16.*' | color_cabal_output
99+ - (cd /tmp && ${CABAL} v2-install $WITHCOMPILER -j2 doctest --constraint='doctest ==0.16.2.*')
86− - ${CABAL} v2-install -w ${HC} -j2 hlint --constraint='hlint ==2.1.*' | color_cabal_output
100+ - if [ $HCNUMVER -lt 80800 ] ; then HLINTVER=$(cd /tmp && (${CABAL} v2-install -v $WITHCOMPILER --dry-run hlint --constraint='hlint ==2.2.*' | perl -ne 'if (/\bhlint-(\d+(\.\d+)*)\b/) { print "$1"; last; }')); echo "HLint version $HLINTVER" ; fi
101+ - "if [ $HCNUMVER -lt 80800 ] ; then if [ ! -e $HOME/.hlint/hlint-$HLINTVER/hlint ]; then echo \"Downloading HLint version $HLINTVER\"; mkdir -p $HOME/.hlint; curl --write-out 'Status Code: %{http_code} Redirects: %{num_redirects} Total time: %{time_total} Total Dsize: %{size_download}\\n' --silent --location --output $HOME/.hlint/hlint-$HLINTVER.tar.gz \"https://github.com/ndmitchell/hlint/releases/download/v$HLINTVER/hlint-$HLINTVER-x86_64-linux.tar.gz\"; tar -xzv -f $HOME/.hlint/hlint-$HLINTVER.tar.gz -C $HOME/.hlint; fi ; fi"
102+ - if [ $HCNUMVER -lt 80800 ] ; then mkdir -p $CABALHOME/bin && ln -sf "$HOME/.hlint/hlint-$HLINTVER/hlint" $CABALHOME/bin/hlint ; fi
103+ - if [ $HCNUMVER -lt 80800 ] ; then hlint --version ; fi
87 # Generate cabal.project
104 # Generate cabal.project
88 - rm -rf cabal.project cabal.project.local cabal.project.freeze
105 - rm -rf cabal.project cabal.project.local cabal.project.freeze
89 - touch cabal.project
106 - touch cabal.project
90 - |
107 - |
91− echo 'packages: "."' >> cabal.project
108+ echo "packages: ." >> cabal.project
92 - |
109 - |
93− echo "write-ghc-environment-files: always" >> cabal.project
94− - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | grep -vE -- '^(Cabal|cabal2nix)$' | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
110+ - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(Cabal|cabal2nix)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
95 - cat cabal.project || true
111 - cat cabal.project || true
96 - cat cabal.project.local || true
112 - cat cabal.project.local || true
97 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
113 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
98− - ${CABAL} v2-freeze -w ${HC} ${TEST} ${BENCH} | color_cabal_output
114+ - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH}
99 - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
115 - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
100 - rm cabal.project.freeze
116 - rm cabal.project.freeze
101− - ${CABAL} v2-build -w ${HC} ${TEST} ${BENCH} --dep -j2 all | color_cabal_output
117+ - travis_wait 40 ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all
102− - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks --dep -j2 all | color_cabal_output
118+ - travis_wait 40 ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --dep -j2 all
103script:
119script:
104 - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
120 - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
105 # Packaging...
121 # Packaging...
106− - ${CABAL} v2-sdist all | color_cabal_output
122+ - ${CABAL} v2-sdist all
107 # Unpacking...
123 # Unpacking...
108 - mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
124 - mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
109 - cd ${DISTDIR} || false
125 - cd ${DISTDIR} || false
110− - find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
126+ - find . -maxdepth 1 -type f -name '*.tar.gz' -exec tar -xvf '{}' \;
127+ - find . -maxdepth 1 -type f -name '*.tar.gz' -exec rm '{}' \;
128+ - PKGDIR_cabal2nix="$(find . -maxdepth 1 -type d -regex '.*/cabal2nix-[0-9.]*')"
111 # Generate cabal.project
129 # Generate cabal.project
112 - rm -rf cabal.project cabal.project.local cabal.project.freeze
130 - rm -rf cabal.project cabal.project.local cabal.project.freeze
113 - touch cabal.project
131 - touch cabal.project
114 - |
132 - |
115− echo 'packages: "cabal2nix-*/*.cabal"' >> cabal.project
133+ echo "packages: ${PKGDIR_cabal2nix}" >> cabal.project
116 - |
134 - |
117− echo "write-ghc-environment-files: always" >> cabal.project
118− - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | grep -vE -- '^(Cabal|cabal2nix)$' | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
135+ - "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(Cabal|cabal2nix)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
119 - cat cabal.project || true
136 - cat cabal.project || true
120 - cat cabal.project.local || true
137 - cat cabal.project.local || true
121 # Building...
138 # Building...
122 # this builds all libraries and executables (without tests/benchmarks)
139 # this builds all libraries and executables (without tests/benchmarks)
123− - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks all | color_cabal_output
140+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
124 # Building with tests and benchmarks...
141 # Building with tests and benchmarks...
125 # build & run tests, build benchmarks
142 # build & run tests, build benchmarks
126− - ${CABAL} v2-build -w ${HC} ${TEST} ${BENCH} all | color_cabal_output
143+ - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all
127 # Testing...
144 # Testing...
128− - ${CABAL} v2-test -w ${HC} ${TEST} ${BENCH} all | color_cabal_output
145+ - ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all
129 # Doctest...
146 # Doctest...
130− - (cd cabal2nix-* && doctest -i ../dist-newstyle/build/*/*/cabal2nix-*/build/autogen -XMonadFailDesugaring src)
147+ - (cd ${PKGDIR_cabal2nix} && doctest -i ../dist-newstyle/build/*/*/cabal2nix-*/build/autogen src)
131 # HLint..
148 # HLint..
132− - (cd cabal2nix-* && hlint -XMonadFailDesugaring src)
149+ - if [ $HCNUMVER -lt 80800 ] ; then (cd ${PKGDIR_cabal2nix} && hlint src) ; fi
133− - (cd cabal2nix-* && hlint -XMonadFailDesugaring hackage2nix)
150+ - if [ $HCNUMVER -lt 80800 ] ; then (cd ${PKGDIR_cabal2nix} && hlint hackage2nix) ; fi
134− - (cd cabal2nix-* && hlint -XMonadFailDesugaring cabal2nix)
151+ - if [ $HCNUMVER -lt 80800 ] ; then (cd ${PKGDIR_cabal2nix} && hlint cabal2nix) ; fi
135 # cabal check...
152 # cabal check...
136− - (cd cabal2nix-* && ${CABAL} -vnormal check)
153+ - (cd ${PKGDIR_cabal2nix} && ${CABAL} -vnormal check)
137 # haddock...
154 # haddock...
138− - ${CABAL} v2-haddock -w ${HC} ${TEST} ${BENCH} all | color_cabal_output
155+ - ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all
139 # Building without installed constraints for packages in global-db...
156 # Building without installed constraints for packages in global-db...
140 - rm -f cabal.project.local
157 - rm -f cabal.project.local
141− - ${CABAL} v2-build -w ${HC} --disable-tests --disable-benchmarks all | color_cabal_output
158+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
142
159
143−# REGENDATA ["--installed=+all -Cabal","--hlint","--doctest","--doctest-options=-i ../dist-newstyle/build/*/*/cabal2nix-*/build/autogen","-o",".travis.yml","cabal2nix.cabal"]
160+# REGENDATA ("0.9.20200306",["--installed=+all -Cabal","--hlint","--doctest","--doctest-options=-i ../dist-newstyle/build/*/*/cabal2nix-*/build/autogen","-o",".travis.yml","cabal2nix.cabal","--head-hackage","--head-hackage-jobs","> 8.8"])
144# EOF
161# EOF
README.md+6−6
@@ -27,16 +27,16 @@ direct `http://host/path/pkg.cabal` URL can be provided, as well as a
27`file:///local/path/pkg.cabal` URI that doesn't depend on network access.
27`file:///local/path/pkg.cabal` URI that doesn't depend on network access.
28However, if the source hash is not already in `cabal2nix`'s cache or provided
28However, if the source hash is not already in `cabal2nix`'s cache or provided
29using the `--sha256` option, `cabal2nix` still needs to download the source
29using the `--sha256` option, `cabal2nix` still needs to download the source
30−code to compute the hash, which obviously still causes network traffic. Run the
30+code to compute the hash, which still causes network traffic. Run the utility
31−utility with `--help` to see the complete list of supported command line flags.
31+with `--help` to see the complete list of supported command-line flags.
32
32
33−Detailed instructions how to use those generated files with Nix can be found at
33+Detailed instructions on how to use those generated files with Nix can be found at
34https://nixos.org/nixpkgs/manual/#how-to-create-nix-builds-for-your-own-private-haskell-packages.
34https://nixos.org/nixpkgs/manual/#how-to-create-nix-builds-for-your-own-private-haskell-packages.
35
35
36`cabal2nix` can also build derivations for projects from other sources than
36`cabal2nix` can also build derivations for projects from other sources than
37−hackage. You only need to provide an URI that points to a cabal project. The
37+Hackage. You only need to provide a URI that points to a cabal project. The
38−most common usecase for this is probably to generate a derivation for a project
38+most common use-case for this is probably to generate a derivation for a
39−on the local file system:
39+project on the local file system:
40
40
41 $ cabal get mtl-2.2.1 && cd mtl-2.2.1
41 $ cabal get mtl-2.2.1 && cd mtl-2.2.1
42 $ cabal2nix .
42 $ cabal2nix .
cabal2nix.cabal+24−75
@@ -1,5 +1,5 @@
1name: cabal2nix
1name: cabal2nix
2−version: 2.15.0
2+version: 2.15.1
3synopsis: Convert Cabal files into Nix build instructions.
3synopsis: Convert Cabal files into Nix build instructions.
4description:
4description:
5 Convert Cabal files into Nix build instructions. Users of Nix can install the latest
5 Convert Cabal files into Nix build instructions. Users of Nix can install the latest
@@ -8,73 +8,26 @@ description:
8 > nix-env -i cabal2nix
8 > nix-env -i cabal2nix
9license: BSD3
9license: BSD3
10license-file: LICENSE
10license-file: LICENSE
11−author: Peter Simons,
11+author: Peter Simons, Andres Loeh, Benno Fünfstück, Mateusz Kowalczyk,
12− Andres Loeh,
13− Benno Fünfstück,
14− Mateusz Kowalczyk,
15− Michael Alan Dorman,
12+ Michael Alan Dorman, Tom Smalley, Mathijs Kwik, Shea Levy, Dmitry
16− Tom Smalley,
17− Mathijs Kwik,
18− Shea Levy,
19− Dmitry Malikov,
20− Eric Seidel,
21− Jacob Mitchell,
22− Graham Christensen,
13+ Malikov, Eric Seidel, Jacob Mitchell, Graham Christensen,
23− Hamish Mackenzie,
14+ Hamish Mackenzie, Nikolay Amiantov, Aycan iRiCAN, Bryan
24− Nikolay Amiantov,
25− Aycan iRiCAN,
26− Bryan Gardiner,
27− Joe Hermaszewski,
15+ Gardiner, Joe Hermaszewski, John Wiegley, Philipp Hausmann,
28− John Wiegley,
29− Philipp Hausmann,
30− Spencer Janssen,
16+ Spencer Janssen, Tom Hunger, William Casarin, koral,
31− Tom Hunger,
32− William Casarin,
33− koral,
34− ksaric,
35− Adam Vogt,
36− Alexey Shmalko,
17+ ksaric, Adam Vogt, Alexey Shmalko, Corey O'Connor, Cray
37− Corey O'Connor,
38− Cray Elliott,
39− David Johnson,
18+ Elliott, David Johnson, Dmitry Bushev, Domen Kožar, Felix
40− Dmitry Bushev,
41− Domen Kožar,
42− Felix Kunzmann,
43− Gabriel Ebner,
44− Gergely Risko,
45− Joachim Fasting,
19+ Kunzmann, Gabriel Ebner, Gergely Risko, Joachim Fasting,
46− John Albietz,
47− John Chee,
48− Jussi Maki,
49− Lisanna Dettwyler,
20+ John Albietz, John Chee, Jussi Maki, Lisanna Dettwyler,
50− Mark Laws,
51− Mark Wotton,
52− Matthew Pickering,
21+ Mark Laws, Mark Wotton, Matthew Pickering, Matthew Stewart,
53− Matthew Stewart,
54− Matvey Aksenov,
55− Nicholas Clarke,
22+ Matvey Aksenov, Nicholas Clarke, Nicolas Rolland, Oliver
56− Nicolas Rolland,
57− Oliver Charles,
58− Pascal Wittmann,
59− Patrick John Wheeler,
23+ Charles, Pascal Wittmann, Patrick John Wheeler, Phil de
60− Phil de Joux,
61− Piotr Bogdan,
62− Profpatsch,
63− Raymond Gauthier,
24+ Joux, Piotr Bogdan, Profpatsch, Raymond Gauthier, Renzo
64− Renzo Carbonara,
65− Rodney Lorrimar,
25+ Carbonara, Rodney Lorrimar, Sibi, Sukant Hajra, Tanner
66− Sibi,
67− Sukant Hajra,
68− Tanner Doshier,
69− Vaibhav Sagar,
70− Viktar Basharymau,
26+ Doshier, Vaibhav Sagar, Viktar Basharymau, danbst, karsten
71− danbst,
72− karsten gebbert,
73− laMudri,
74− Александр Цамутали
27+ gebbert, laMudri, Александр Цамутали
75maintainer: Peter Simons <simons@cryp.to>
28maintainer: Peter Simons <simons@cryp.to>
76stability: stable
29stability: stable
77−tested-with: GHC == 8.6.4
30+tested-with: GHC == 8.6.5, GHC == 8.8.3, GHC == 8.10.1
78category: Distribution, Nix
31category: Distribution, Nix
79homepage: https://github.com/nixos/cabal2nix#readme
32homepage: https://github.com/nixos/cabal2nix#readme
80bug-reports: https://github.com/nixos/cabal2nix/issues
33bug-reports: https://github.com/nixos/cabal2nix/issues
@@ -108,14 +61,14 @@ library
108 other-modules: Paths_cabal2nix
61 other-modules: Paths_cabal2nix
109 hs-source-dirs: src
62 hs-source-dirs: src
110 build-depends: base > 4.11
63 build-depends: base > 4.11
111− , Cabal > 3
64+ , Cabal == 3.0.*
112 , aeson > 1
65 , aeson > 1
113 , ansi-wl-pprint
66 , ansi-wl-pprint
114 , bytestring
67 , bytestring
115 , containers >= 0.5.9
68 , containers >= 0.5.9
116 , deepseq >= 1.4
69 , deepseq >= 1.4
117 , directory
70 , directory
118− , distribution-nixpkgs >= 1.2
71+ , distribution-nixpkgs >= 1.3.1
119 , filepath
72 , filepath
120 , hackage-db >= 2.0.1
73 , hackage-db >= 2.0.1
121 , hopenssl >= 2
74 , hopenssl >= 2
@@ -131,7 +84,6 @@ library
131 , transformers
84 , transformers
132 , yaml
85 , yaml
133 default-language: Haskell2010
86 default-language: Haskell2010
134− default-extensions: MonadFailDesugaring
135 other-extensions: MultiParamTypeClasses
87 other-extensions: MultiParamTypeClasses
136 ScopedTypeVariables
88 ScopedTypeVariables
137 FlexibleInstances
89 FlexibleInstances
@@ -149,7 +101,6 @@ executable cabal2nix
149 hs-source-dirs: cabal2nix
101 hs-source-dirs: cabal2nix
150 build-depends: base, cabal2nix
102 build-depends: base, cabal2nix
151 default-language: Haskell2010
103 default-language: Haskell2010
152− default-extensions: MonadFailDesugaring
153 ghc-options: -Wall -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates
104 ghc-options: -Wall -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates
154 -Wredundant-constraints
105 -Wredundant-constraints
155
106
@@ -159,7 +110,7 @@ executable hackage2nix
159 Paths_cabal2nix
110 Paths_cabal2nix
160 hs-source-dirs: hackage2nix
111 hs-source-dirs: hackage2nix
161 build-depends: base < 5
112 build-depends: base < 5
162− , Cabal > 2.4
113+ , Cabal
163 , aeson
114 , aeson
164 , bytestring
115 , bytestring
165 , cabal2nix
116 , cabal2nix
@@ -176,16 +127,15 @@ executable hackage2nix
176 , optparse-applicative
127 , optparse-applicative
177 , pretty >= 1.1.2
128 , pretty >= 1.1.2
178 default-language: Haskell2010
129 default-language: Haskell2010
179− default-extensions: MonadFailDesugaring
180 ghc-options: -Wall -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates
130 ghc-options: -Wall -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates
181− -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
131+ -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-maxN16
182
132
183test-suite regression-test
133test-suite regression-test
184 type: exitcode-stdio-1.0
134 type: exitcode-stdio-1.0
185 main-is: Main.hs
135 main-is: Main.hs
186 hs-source-dirs: test
136 hs-source-dirs: test
187 build-depends: base
137 build-depends: base
188− , Cabal > 2.4
138+ , Cabal
189 , cabal2nix
139 , cabal2nix
190 , containers
140 , containers
191 , directory
141 , directory
@@ -197,7 +147,6 @@ test-suite regression-test
197 , tasty
147 , tasty
198 , tasty-golden
148 , tasty-golden
199 default-language: Haskell2010
149 default-language: Haskell2010
200− default-extensions: MonadFailDesugaring
201 build-tools: cabal2nix
150 build-tools: cabal2nix
202 ghc-options: -Wall -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates
151 ghc-options: -Wall -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates
203 -Wredundant-constraints -threaded -with-rtsopts=-K64K
152 -Wredundant-constraints -threaded -with-rtsopts=-K64K
hackage2nix/Main.hs+1−1
@@ -10,7 +10,7 @@ import Control.Monad
10import Control.Monad.Par.Combinator
10import Control.Monad.Par.Combinator
11import Control.Monad.Par.IO
11import Control.Monad.Par.IO
12import Control.Monad.Trans ( liftIO )
12import Control.Monad.Trans ( liftIO )
13−import Data.List
13+import Data.List ( intercalate )
14import Data.Map.Strict ( Map )
14import Data.Map.Strict ( Map )
15import qualified Data.Map.Strict as Map
15import qualified Data.Map.Strict as Map
16import Data.Maybe
16import Data.Maybe
src/Cabal2nix.hs+2−2
@@ -11,10 +11,9 @@ module Cabal2nix
11import Control.Exception ( bracket )
11import Control.Exception ( bracket )
12import Control.Lens
12import Control.Lens
13import Control.Monad
13import Control.Monad
14−import Data.List
14+import Data.List ( intercalate, isPrefixOf )
15import Data.List.Split
15import Data.List.Split
16import Data.Maybe ( fromMaybe, isJust, listToMaybe )
16import Data.Maybe ( fromMaybe, isJust, listToMaybe )
17−import Data.Monoid ( (<>) )
18import qualified Data.Set as Set
17import qualified Data.Set as Set
19import Data.String
18import Data.String
20import Data.Time
19import Data.Time
@@ -136,6 +135,7 @@ ghcConvertOS os = case os of
136 "watchos" -> "ios"
135 "watchos" -> "ios"
137 "tvos" -> "ios"
136 "tvos" -> "ios"
138 "linux-android" -> "linux-android"
137 "linux-android" -> "linux-android"
138+ "linux-androideabi" -> "linux-androideabi"
139 _ | "linux-" `isPrefixOf` os -> "linux"
139 _ | "linux-" `isPrefixOf` os -> "linux"
140 _ -> fromMaybe os $ listToMaybe
140 _ -> fromMaybe os $ listToMaybe
141 [prefix | prefix <- osPrefixes, prefix `isPrefixOf` os]
141 [prefix | prefix <- osPrefixes, prefix `isPrefixOf` os]
src/Distribution/Nixpkgs/Fetch.hs+3−1
@@ -161,7 +161,9 @@ fetchWith (supportsRev, kind, addArgs) source = do
161 ExitFailure _ -> return Nothing
161 ExitFailure _ -> return Nothing
162 ExitSuccess -> do
162 ExitSuccess -> do
163 buf <- BS.hGetContents stdoutH
163 buf <- BS.hGetContents stdoutH
164− let (l:ls) = reverse (BS.lines buf)
164+ let (l,ls) = case reverse (BS.lines buf) of
165+ [] -> error "This can't happen, but GHC doesn't know that."
166+ (x:xs) -> (x,xs)
165 buf' = BS.unlines (reverse ls)
167 buf' = BS.unlines (reverse ls)
166 case length ls of
168 case length ls of
167 0 -> return Nothing
169 0 -> return Nothing
src/Distribution/Nixpkgs/Haskell/Derivation.hs+1−1
@@ -15,7 +15,7 @@ module Distribution.Nixpkgs.Haskell.Derivation
15
15
16import Control.DeepSeq
16import Control.DeepSeq
17import Control.Lens
17import Control.Lens
18−import Data.List
18+import Data.List ( isPrefixOf )
19import Data.Set ( Set )
19import Data.Set ( Set )
20import qualified Data.Set as Set
20import qualified Data.Set as Set
21import Data.Set.Lens
21import Data.Set.Lens
src/Distribution/Nixpkgs/Haskell/FromCabal/Configuration.hs+5−2
@@ -9,10 +9,13 @@ module Distribution.Nixpkgs.Haskell.FromCabal.Configuration
9 )
9 )
10 where
10 where
11
11
12+import Prelude hiding ( fail )
13+
12import Control.DeepSeq
14import Control.DeepSeq
13import Control.Exception ( throwIO )
15import Control.Exception ( throwIO )
14import Control.Lens
16import Control.Lens
15−import Control.Monad
17+import Control.Monad hiding ( fail )
18+import Control.Monad.Fail
16import Data.Aeson
19import Data.Aeson
17import Data.Map as Map
20import Data.Map as Map
18import Data.Set as Set
21import Data.Set as Set
@@ -91,7 +94,7 @@ parseKey s = either error id (parseEither parseJSON (String s))
91readConfiguration :: FilePath -> IO Configuration
94readConfiguration :: FilePath -> IO Configuration
92readConfiguration path = decodeFileEither path >>= either throwIO assertConsistency
95readConfiguration path = decodeFileEither path >>= either throwIO assertConsistency
93
96
94−assertConsistency :: Monad m => Configuration -> m Configuration
97+assertConsistency :: MonadFail m => Configuration -> m Configuration
95assertConsistency cfg@Configuration {..} = do
98assertConsistency cfg@Configuration {..} = do
96 let report msg = fail ("*** configuration error: " ++ msg)
99 let report msg = fail ("*** configuration error: " ++ msg)
97 maintainedPackages = Set.unions (Map.elems packageMaintainers)
100 maintainedPackages = Set.unions (Map.elems packageMaintainers)
src/Distribution/Nixpkgs/Haskell/FromCabal/Flags.hs+8−3
@@ -4,6 +4,7 @@ module Distribution.Nixpkgs.Haskell.FromCabal.Flags ( configureCabalFlags ) wher
4
4
5import Distribution.Nixpkgs.Haskell.OrphanInstances ( )
5import Distribution.Nixpkgs.Haskell.OrphanInstances ( )
6
6
7+import Data.Char
7import Distribution.Package
8import Distribution.Package
8import Distribution.PackageDescription
9import Distribution.PackageDescription
9import Distribution.Version
10import Distribution.Version
@@ -15,6 +16,7 @@ configureCabalFlags' :: PackageIdentifier -> [(FlagName,Bool)]
15configureCabalFlags' (PackageIdentifier name version)
16configureCabalFlags' (PackageIdentifier name version)
16 | name == "accelerate-examples"= [disable "opencl"]
17 | name == "accelerate-examples"= [disable "opencl"]
17 | name == "arithmoi" = [disable "llvm"]
18 | name == "arithmoi" = [disable "llvm"]
19+ | name == "bustle" = [disable "hgettext"] -- https://gitlab.freedesktop.org/bustle/bustle/issues/13
18 | name == "cabal-plan" = [enable "exe"]
20 | name == "cabal-plan" = [enable "exe"]
19 | name == "cassava" = [disable "bytestring--lt-0_10_4"]
21 | name == "cassava" = [disable "bytestring--lt-0_10_4"]
20 | name == "darcs" = [enable "library", enable "force-char8-encoding"]
22 | name == "darcs" = [enable "library", enable "force-char8-encoding"]
@@ -26,7 +28,7 @@ configureCabalFlags' (PackageIdentifier name version)
26 , enable "dbus"
28 , enable "dbus"
27 , disable "debuglocks"
29 , disable "debuglocks"
28 , enable "magicmime"
30 , enable "magicmime"
29− , disable "networkbsd"
31+ , enable "networkbsd"
30 , enable "pairing"
32 , enable "pairing"
31 , enable "production"
33 , enable "production"
32 , enable "s3"
34 , enable "s3"
@@ -57,7 +59,10 @@ configureCabalFlags' (PackageIdentifier name version)
57 | otherwise = []
59 | otherwise = []
58
60
59enable :: String -> (FlagName,Bool)
61enable :: String -> (FlagName,Bool)
60−enable name = (mkFlagName name, True)
62+enable name = (mkFlagName' name, True)
61
63
62disable :: String -> (FlagName,Bool)
64disable :: String -> (FlagName,Bool)
63−disable name = (mkFlagName name, False)
65+disable name = (mkFlagName' name, False)
66+
67+mkFlagName' :: String -> FlagName
68+mkFlagName' = mkFlagName . map toLower
src/Distribution/Nixpkgs/Haskell/FromCabal/Name.hs+3−1
@@ -29,6 +29,7 @@ libNixName "appindicator-0.1" = return "libappindicator-gtk2"
29libNixName "appindicator3-0.1" = return "libappindicator-gtk3"
29libNixName "appindicator3-0.1" = return "libappindicator-gtk3"
30libNixName "asound" = return "alsaLib"
30libNixName "asound" = return "alsaLib"
31libNixName "b2" = return "libb2"
31libNixName "b2" = return "libb2"
32+libNixName "boost_context" = return "boost"
32libNixName "bz2" = return "bzip2"
33libNixName "bz2" = return "bzip2"
33libNixName "c++" = [] -- What is that?
34libNixName "c++" = [] -- What is that?
34libNixName "cairo-gobject" = return "cairo"
35libNixName "cairo-gobject" = return "cairo"
@@ -94,6 +95,8 @@ libNixName "ldap" = return "openldap"
94libNixName "libavutil" = return "ffmpeg"
95libNixName "libavutil" = return "ffmpeg"
95libNixName "libgsasl" = return "gsasl"
96libNixName "libgsasl" = return "gsasl"
96libNixName "libpcre" = return "pcre"
97libNixName "libpcre" = return "pcre"
98+libNixName "libpcre2" = return "pcre2"
99+libNixName "libpcre2-8" = libNixName "libpcre2"
97libNixName "libqrencode" = return "qrencode"
100libNixName "libqrencode" = return "qrencode"
98libNixName "libR" = return "R"
101libNixName "libR" = return "R"
99libNixName "libsoup-gnome-2.4" = return "libsoup"
102libNixName "libsoup-gnome-2.4" = return "libsoup"
@@ -200,7 +203,6 @@ buildToolNixName "nix-env" = return "nix"
200buildToolNixName "nix-hash" = return "nix"
203buildToolNixName "nix-hash" = return "nix"
201buildToolNixName "nix-instantiate" = return "nix"
204buildToolNixName "nix-instantiate" = return "nix"
202buildToolNixName "nix-store" = return "nix"
205buildToolNixName "nix-store" = return "nix"
203−buildToolNixName "pkg-config" = return "pkgconfig"
204buildToolNixName x = return (fromString x)
206buildToolNixName x = return (fromString x)
205
207
206-- | Helper function to extract the package name from a String that may or may
208-- | Helper function to extract the package name from a String that may or may
src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+10−3
@@ -13,6 +13,7 @@ import Data.Set ( Set )
13import qualified Data.Set as Set
13import qualified Data.Set as Set
14import Distribution.Nixpkgs.Haskell
14import Distribution.Nixpkgs.Haskell
15import Distribution.Nixpkgs.Meta
15import Distribution.Nixpkgs.Meta
16+import Distribution.Nixpkgs.License
16import Distribution.Package
17import Distribution.Package
17import Distribution.System
18import Distribution.System
18import Distribution.Text
19import Distribution.Text
@@ -78,7 +79,7 @@ hooks =
78 , ("alsa-core", over (metaSection . platforms) (Set.filter (\(Platform _ os) -> os == Linux)))
79 , ("alsa-core", over (metaSection . platforms) (Set.filter (\(Platform _ os) -> os == Linux)))
79 , ("bindings-GLFW", over (libraryDepends . system) (Set.union (Set.fromList [bind "pkgs.xorg.libXext", bind "pkgs.xorg.libXfixes"])))
80 , ("bindings-GLFW", over (libraryDepends . system) (Set.union (Set.fromList [bind "pkgs.xorg.libXext", bind "pkgs.xorg.libXfixes"])))
80 , ("bindings-lxc", over (metaSection . platforms) (Set.filter (\(Platform _ os) -> os == Linux)))
81 , ("bindings-lxc", over (metaSection . platforms) (Set.filter (\(Platform _ os) -> os == Linux)))
81− , ("bustle", set (libraryDepends . pkgconfig . contains "system-glib = pkgs.glib") True)
82+ , ("bustle", bustleOverrides)
82 , ("Cabal", set doCheck False) -- test suite doesn't work in Nix
83 , ("Cabal", set doCheck False) -- test suite doesn't work in Nix
83 , ("Cabal >2.2", over (setupDepends . haskell) (Set.union (Set.fromList [self "mtl", self "parsec"]))) -- https://github.com/haskell/cabal/issues/5391
84 , ("Cabal >2.2", over (setupDepends . haskell) (Set.union (Set.fromList [self "mtl", self "parsec"]))) -- https://github.com/haskell/cabal/issues/5391
84 , ("cabal-helper", set doCheck False) -- https://github.com/DanielG/cabal-helper/issues/17
85 , ("cabal-helper", set doCheck False) -- https://github.com/DanielG/cabal-helper/issues/17
@@ -89,7 +90,7 @@ hooks =
89 , ("dns", set testTarget "spec") -- don't execute tests that try to access the network
90 , ("dns", set testTarget "spec") -- don't execute tests that try to access the network
90 , ("eventstore", over (metaSection . platforms) (Set.filter (\(Platform arch _) -> arch == X86_64)))
91 , ("eventstore", over (metaSection . platforms) (Set.filter (\(Platform arch _) -> arch == X86_64)))
91 , ("freenect < 1.2.1", over configureFlags (Set.union (Set.fromList ["--extra-include-dirs=${pkgs.freenect}/include/libfreenect", "--extra-lib-dirs=${pkgs.freenect}/lib"])))
92 , ("freenect < 1.2.1", over configureFlags (Set.union (Set.fromList ["--extra-include-dirs=${pkgs.freenect}/include/libfreenect", "--extra-lib-dirs=${pkgs.freenect}/lib"])))
92− , ("fltkhs", set (libraryDepends . system . contains (pkg "fltk14")) True . set (libraryDepends . pkgconfig . contains (pkg "libGLU_combined")) True) -- TODO: fltk14 belongs into the *setup* dependencies.
93+ , ("fltkhs", set (libraryDepends . system . contains (pkg "fltk14")) True . over (libraryDepends . pkgconfig) (Set.union (pkgs ["libGLU", "libGL"]))) -- TODO: fltk14 belongs into the *setup* dependencies.
93 , ("gf", set phaseOverrides gfPhaseOverrides . set doCheck False)
94 , ("gf", set phaseOverrides gfPhaseOverrides . set doCheck False)
94 , ("gi-cairo", giCairoPhaseOverrides) -- https://github.com/haskell-gi/haskell-gi/issues/36
95 , ("gi-cairo", giCairoPhaseOverrides) -- https://github.com/haskell-gi/haskell-gi/issues/36
95 , ("gi-gdk", set runHaddock True )
96 , ("gi-gdk", set runHaddock True )
@@ -255,7 +256,7 @@ gfPhaseOverrides = unlines
255 , " sed -i \"s|numJobs (bf bi)++||\" ./Setup.hs"
256 , " sed -i \"s|numJobs (bf bi)++||\" ./Setup.hs"
256 -- Parallel compilation fails. Disable it.
257 -- Parallel compilation fails. Disable it.
257 , "'';"
258 , "'';"
258− , "preBuild = ''export LD_LIBRARY_PATH=`pwd`/dist/build:$LD_LIBRARY_PATH'';"
259+ , "preBuild = ''export LD_LIBRARY_PATH=`pwd`/dist/build''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH'';"
259 -- The build step itself, after having built the library, needs to be able
260 -- The build step itself, after having built the library, needs to be able
260 -- to find the library it just built in order to compile grammar files.
261 -- to find the library it just built in order to compile grammar files.
261 ]
262 ]
@@ -400,3 +401,9 @@ pandocOverrides = set phaseOverrides postInstall
400 , " mv \"man/\"*.1 $out/share/man/man1/"
401 , " mv \"man/\"*.1 $out/share/man/man1/"
401 , "'';"
402 , "'';"
402 ]
403 ]
404+
405+bustleOverrides :: Derivation -> Derivation
406+bustleOverrides = set (libraryDepends . pkgconfig . contains "system-glib = pkgs.glib") True
407+ . set (executableDepends . pkgconfig . contains "gio-unix = null") False
408+ . set (metaSection . license) (Known "stdenv.lib.licenses.lgpl21Plus")
409+ . set (metaSection . hydraPlatforms) allKnownPlatforms
update-stackage.sh+2−3
@@ -25,6 +25,7 @@ sed -r \
25sed -r \
25sed -r \
26 -e '/ cabal-install /d' \
26 -e '/ cabal-install /d' \
27 -e '/ cabal2nix /d' \
27 -e '/ cabal2nix /d' \
28+ -e '/ cabal2spec /d' \
28 -e '/ distribution-nixpkgs /d' \
29 -e '/ distribution-nixpkgs /d' \
29 -e '/ git-annex /d' \
30 -e '/ git-annex /d' \
30 -e '/ hindent /d' \
31 -e '/ hindent /d' \
@@ -34,8 +35,6 @@ sed -r \
34 -e '/ hopenssl /d' \
35 -e '/ hopenssl /d' \
35 -e '/ jailbreak-cabal /d' \
36 -e '/ jailbreak-cabal /d' \
36 -e '/ json-autotype/d' \
37 -e '/ json-autotype/d' \
37− -e '/ lambdabot-core /d' \
38− -e '/ lambdabot-irc-plugins /d' \
39 -e '/ language-nix /d' \
38 -e '/ language-nix /d' \
40 -e '/ shake /d' \
39 -e '/ shake /d' \
41 -e '/ ShellCheck /d' \
40 -e '/ ShellCheck /d' \
@@ -45,7 +44,7 @@ sed -r \
45
44
46# Drop the previous configuration ...
45# Drop the previous configuration ...
47# shellcheck disable=SC1004
46# shellcheck disable=SC1004
48−sed -e '/# LTS Haskell/,/^$/c \TODO\
47+sed -e '/ # LTS Haskell/,/^$/c \TODO\
49' -i nixpkgs/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
48' -i nixpkgs/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
50
49
51# ... and replace it with the new one.
50# ... and replace it with the new one.