summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-common.nix
diff options
context:
space:
mode:
authorhyperfekt <git@hyperfekt.net>2020-05-04 01:01:57 +0200
committerMalte Brandy <malte.brandy@maralorn.de>2021-05-01 21:55:18 +0200
commitf3f84855e8fa9b190a14f49c5c6db9e816e72c10 (patch)
treedbdded4995b914d883b9ff546f3c1d31cce8e145 /pkgs/development/haskell-modules/configuration-common.nix
parentee30de13b7730342a2bfe720c5877b6abf361172 (diff)
downloadnixpkgs-f3f84855e8fa9b190a14f49c5c6db9e816e72c10.tar
nixpkgs-f3f84855e8fa9b190a14f49c5c6db9e816e72c10.tar.gz
nixpkgs-f3f84855e8fa9b190a14f49c5c6db9e816e72c10.tar.bz2
nixpkgs-f3f84855e8fa9b190a14f49c5c6db9e816e72c10.tar.lz
nixpkgs-f3f84855e8fa9b190a14f49c5c6db9e816e72c10.tar.xz
nixpkgs-f3f84855e8fa9b190a14f49c5c6db9e816e72c10.tar.zst
nixpkgs-f3f84855e8fa9b190a14f49c5c6db9e816e72c10.zip
maintainers/scripts/haskell/regenerate-hackage-packages.sh: init
Introduces a script that can be used to update the Nix expressions for

the Haskell package set. In service of that, also

- introduces cabal2nix-latest, which pins the hackage2nix version used

- changes all-cabal-hashes to use fetchFromGitHub

- adds update-hackage.sh & update-cabal2nix-latest.sh & update-stackage.sh maintainer scripts
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 73ef9fd84dc..3b6f5f3ef5e 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -1797,4 +1797,8 @@ self: super: {
   # https://github.com/obsidiansystems/database-id/issues/1
   database-id-class = doJailbreak super.database-id-class;
 
+  cabal2nix-latest = overrideCabal super.cabal2nix-latest {
+    passthru.updateScript = ../../../maintainers/scripts/haskell/update-cabal2nix-latest.sh;
+  };
+
 } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super