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
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
# This file defines cabal2nix-latest, used by maintainers/scripts/haskell/regenerate-hackage-packages.sh.
|
||||
{ mkDerivation, aeson, ansi-wl-pprint, base, bytestring, Cabal
|
||||
, containers, deepseq, directory, distribution-nixpkgs, fetchzip
|
||||
, filepath, hackage-db, hopenssl, hpack, language-nix, lens, lib
|
||||
, monad-par, monad-par-extras, mtl, optparse-applicative, pretty
|
||||
, process, split, tasty, tasty-golden, text, time, transformers
|
||||
, yaml
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "cabal2nix";
|
||||
version = "2021-05-01";
|
||||
src = fetchzip {
|
||||
url = "https://github.com/NixOS/cabal2nix/archive/849a3507c849e3e2331efbc5ebe391b70a215ddc.tar.gz";
|
||||
sha256 = "0g91d2bd72l3kkykc47a2raymvgw6427n7cg9ayzvrpldkd0silc";
|
||||
};
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
libraryHaskellDepends = [
|
||||
aeson ansi-wl-pprint base bytestring Cabal containers deepseq
|
||||
directory distribution-nixpkgs filepath hackage-db hopenssl hpack
|
||||
language-nix lens optparse-applicative pretty process split text
|
||||
time transformers yaml
|
||||
];
|
||||
executableHaskellDepends = [
|
||||
aeson base bytestring Cabal containers directory
|
||||
distribution-nixpkgs filepath hopenssl language-nix lens monad-par
|
||||
monad-par-extras mtl optparse-applicative pretty
|
||||
];
|
||||
testHaskellDepends = [
|
||||
base Cabal containers directory filepath language-nix lens pretty
|
||||
process tasty tasty-golden
|
||||
];
|
||||
preCheck = ''
|
||||
export PATH="$PWD/dist/build/cabal2nix:$PATH"
|
||||
export HOME="$TMPDIR/home"
|
||||
'';
|
||||
homepage = "https://github.com/nixos/cabal2nix#readme";
|
||||
description = "Convert Cabal files into Nix build instructions";
|
||||
license = lib.licenses.bsd3;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
+20
-14
@@ -58220,8 +58220,8 @@ self: {
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "code-conjure";
|
||||
version = "0.1.0";
|
||||
sha256 = "0zagchakak4mrdpgy23d2wfb357dc6fn78fpcjs1ik025wmldy88";
|
||||
version = "0.1.2";
|
||||
sha256 = "14xgpax596wd66kan1nj043n9f4wwn34rr77hgj6wir9aygx9sla";
|
||||
libraryHaskellDepends = [
|
||||
base express leancheck speculate template-haskell
|
||||
];
|
||||
@@ -70946,8 +70946,6 @@ self: {
|
||||
libraryHaskellDepends = [ aeson base ];
|
||||
description = "Class for types with a database id";
|
||||
license = lib.licenses.bsd3;
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
broken = true;
|
||||
}) {};
|
||||
|
||||
"database-id-groundhog" = callPackage
|
||||
@@ -88332,6 +88330,20 @@ self: {
|
||||
license = lib.licenses.bsd3;
|
||||
}) {};
|
||||
|
||||
"express_0_1_8" = callPackage
|
||||
({ mkDerivation, base, leancheck, template-haskell }:
|
||||
mkDerivation {
|
||||
pname = "express";
|
||||
version = "0.1.8";
|
||||
sha256 = "1g586cv6j79w40bmagqi156rjv09k1whhvpg67p0f707hbq1ph0a";
|
||||
libraryHaskellDepends = [ base template-haskell ];
|
||||
testHaskellDepends = [ base leancheck ];
|
||||
benchmarkHaskellDepends = [ base leancheck ];
|
||||
description = "Dynamically-typed expressions involving applications and variables";
|
||||
license = lib.licenses.bsd3;
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
}) {};
|
||||
|
||||
"expression-parser" = callPackage
|
||||
({ mkDerivation, base }:
|
||||
mkDerivation {
|
||||
@@ -145141,8 +145153,6 @@ self: {
|
||||
executableHaskellDepends = [ base containers HUnit random ];
|
||||
description = "A Yahtzee game implementation in Haskell";
|
||||
license = lib.licenses.bsd3;
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
broken = true;
|
||||
}) {};
|
||||
|
||||
"hyakko" = callPackage
|
||||
@@ -195775,8 +195785,6 @@ self: {
|
||||
platforms = [
|
||||
"aarch64-linux" "armv7l-linux" "i686-linux" "x86_64-linux"
|
||||
];
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
broken = true;
|
||||
}) {pam = null;};
|
||||
|
||||
"pan-os-syslog" = callPackage
|
||||
@@ -244539,17 +244547,15 @@ self: {
|
||||
|
||||
"sockets-and-pipes" = callPackage
|
||||
({ mkDerivation, aeson, ascii, async, base, blaze-html, bytestring
|
||||
, containers, network, safe-exceptions, stm, text, time
|
||||
, containers, network, pipes, safe-exceptions, stm, text, time
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "sockets-and-pipes";
|
||||
version = "0.1";
|
||||
sha256 = "02xc2kddcz93d9yqdchml0yh9gypcx64315baj766adgf8np42nv";
|
||||
revision = "4";
|
||||
editedCabalFile = "1lv2zpyblqryr59ii3zvwi5f06vxsgnla1xa14rardhncs36fa8r";
|
||||
version = "0.2";
|
||||
sha256 = "13xc6f525la66k76y515r0dwjqh583zl7z1k4z1w6hraim6kg95v";
|
||||
libraryHaskellDepends = [
|
||||
aeson ascii async base blaze-html bytestring containers network
|
||||
safe-exceptions stm text time
|
||||
pipes safe-exceptions stm text time
|
||||
];
|
||||
description = "Support for the Sockets and Pipes book";
|
||||
license = lib.licenses.asl20;
|
||||
|
||||
@@ -11,6 +11,10 @@ self: super: {
|
||||
|
||||
ldgallery-compiler = self.callPackage ../../tools/graphics/ldgallery/compiler { };
|
||||
|
||||
# Used by maintainers/scripts/regenerate-hackage-packages.sh, and generated
|
||||
# from the latest master instead of the current version on Hackage.
|
||||
cabal2nix-latest = self.callPackage ./cabal2nix-latest.nix { };
|
||||
|
||||
# https://github.com/channable/vaultenv/issues/1
|
||||
vaultenv = self.callPackage ../tools/haskell/vaultenv { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user