petrinizer: fix build

* take z3 haskell package from haskellPackages
* take sbv 7.13 from haskellPackages, apply patch fixing build
with GHC >= 8.8.8

authored by

sternenseemann and committed by
sterni
73c2dd4a abf5583c

+44 -58
+4 -8
pkgs/applications/science/logic/petrinizer/default.nix
··· 1 - { mkDerivation, callPackage, buildPackages 1 + { mkDerivation 2 2 , async, base, bytestring, containers, fetchFromGitLab, mtl 3 - , parallel-io, parsec, lib, stm, transformers 3 + , parallel-io, parsec, lib, stm, transformers, sbv_7_13, z3 4 4 }: 5 - let 6 - z3 = callPackage ./z3.nix { gomp = null; z3 = buildPackages.z3; }; 7 - in let 8 - sbv = callPackage ./sbv-7.13.nix { inherit z3; }; 9 - in 5 + 10 6 mkDerivation rec { 11 7 pname = "petrinizer"; 12 8 version = "0.9.1.1"; ··· 22 18 isLibrary = false; 23 19 isExecutable = true; 24 20 executableHaskellDepends = [ 25 - async base bytestring containers mtl parallel-io parsec sbv stm 21 + async base bytestring containers mtl parallel-io parsec sbv_7_13 stm 26 22 transformers 27 23 ]; 28 24 description = "Safety and Liveness Analysis of Petri Nets with SMT solvers";
-26
pkgs/applications/science/logic/petrinizer/sbv-7.13.nix
··· 1 - { mkDerivation, array, async, base, bytestring, containers 2 - , crackNum, deepseq, directory, doctest, filepath, generic-deriving 3 - , ghc, Glob, hlint, mtl, pretty, process, QuickCheck, random 4 - , lib, syb, tasty, tasty-golden, tasty-hunit, tasty-quickcheck 5 - , template-haskell, time, z3 6 - }: 7 - mkDerivation { 8 - pname = "sbv"; 9 - version = "7.13"; 10 - sha256 = "0bk400swnb4s98c5p71ml1px6jndaiqhf5dj7zmnliyplqcgpfik"; 11 - enableSeparateDataOutput = true; 12 - libraryHaskellDepends = [ 13 - array async base containers crackNum deepseq directory filepath 14 - generic-deriving ghc mtl pretty process QuickCheck random syb 15 - template-haskell time 16 - ]; 17 - testHaskellDepends = [ 18 - base bytestring containers crackNum directory doctest filepath Glob 19 - hlint mtl QuickCheck random syb tasty tasty-golden tasty-hunit 20 - tasty-quickcheck template-haskell 21 - ]; 22 - testSystemDepends = [ z3 ]; 23 - homepage = "http://leventerkok.github.com/sbv/"; 24 - description = "SMT Based Verification: Symbolic Haskell theorem prover using SMT solving"; 25 - license = lib.licenses.bsd3; 26 - }
-24
pkgs/applications/science/logic/petrinizer/z3.nix
··· 1 - { mkDerivation, fetchpatch 2 - , base, containers, gomp, hspec, QuickCheck, lib 3 - , transformers, z3 4 - }: 5 - mkDerivation { 6 - pname = "z3"; 7 - version = "408.0"; 8 - sha256 = "13qkzy9wc17rm60i24fa9sx15ywbxq4a80g33w20887gvqyc0q53"; 9 - isLibrary = true; 10 - isExecutable = true; 11 - libraryHaskellDepends = [ base containers transformers ]; 12 - librarySystemDepends = [ gomp z3 ]; 13 - testHaskellDepends = [ base hspec QuickCheck ]; 14 - homepage = "https://github.com/IagoAbal/haskell-z3"; 15 - description = "Bindings for the Z3 Theorem Prover"; 16 - license = lib.licenses.bsd3; 17 - doCheck = false; 18 - patches = [ 19 - (fetchpatch { 20 - url = "https://github.com/IagoAbal/haskell-z3/commit/b10e09b8a809fb5bbbb1ef86aeb62109ece99cae.patch"; 21 - sha256 = "13fnrs27mg3985r3lwks8fxfxr5inrayy2cyx2867d92pnl3yry4"; 22 - }) 23 - ]; 24 - }
+8
pkgs/development/haskell-modules/configuration-common.nix
··· 1852 1852 doCheck = pkgs.stdenv.targetPlatform.system == "x86_64-linux"; 1853 1853 }; 1854 1854 1855 + # Fix build failure by picking patch from 8.5, 1856 + # we need this version of sbv for petrinizer 1857 + sbv_7_13 = appendPatch super.sbv_7_13 1858 + (pkgs.fetchpatch { 1859 + url = "https://github.com/LeventErkok/sbv/commit/57014b9c7c67dd9b63619a996e2c66e32c33c958.patch"; 1860 + sha256 = "10npa8nh2413n6p6qld795qfkbld08icm02bspmk93y0kabpgmgm"; 1861 + }); 1862 + 1855 1863 } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super
+1
pkgs/development/haskell-modules/configuration-hackage2nix.yaml
··· 2818 2818 - optparse-applicative < 0.16 # needed for niv-0.2.19 2819 2819 - refinery == 0.3.* # required by hls-tactics-plugin-1.0.0.0 2820 2820 - resolv == 0.1.1.2 # required to build cabal-install-3.0.0.0 with pre ghc-8.8.x 2821 + - sbv == 7.13 # required for pkgs.petrinizer 2821 2822 2822 2823 package-maintainers: 2823 2824 peti:
+31
pkgs/development/haskell-modules/hackage-packages.nix
··· 229602 229602 license = lib.licenses.bsd3; 229603 229603 }) {}; 229604 229604 229605 + "sbv_7_13" = callPackage 229606 + ({ mkDerivation, array, async, base, bytestring, containers 229607 + , crackNum, deepseq, directory, doctest, filepath, generic-deriving 229608 + , ghc, Glob, hlint, mtl, pretty, process, QuickCheck, random, syb 229609 + , tasty, tasty-golden, tasty-hunit, tasty-quickcheck 229610 + , template-haskell, time, z3 229611 + }: 229612 + mkDerivation { 229613 + pname = "sbv"; 229614 + version = "7.13"; 229615 + sha256 = "0bk400swnb4s98c5p71ml1px6jndaiqhf5dj7zmnliyplqcgpfik"; 229616 + enableSeparateDataOutput = true; 229617 + libraryHaskellDepends = [ 229618 + array async base containers crackNum deepseq directory filepath 229619 + generic-deriving ghc mtl pretty process QuickCheck random syb 229620 + template-haskell time 229621 + ]; 229622 + testHaskellDepends = [ 229623 + base bytestring containers crackNum directory doctest filepath Glob 229624 + hlint mtl QuickCheck random syb tasty tasty-golden tasty-hunit 229625 + tasty-quickcheck template-haskell 229626 + ]; 229627 + testSystemDepends = [ z3 ]; 229628 + description = "SMT Based Verification: Symbolic Haskell theorem prover using SMT solving"; 229629 + license = lib.licenses.bsd3; 229630 + platforms = [ 229631 + "armv7l-linux" "i686-linux" "x86_64-darwin" "x86_64-linux" 229632 + ]; 229633 + hydraPlatforms = lib.platforms.none; 229634 + }) {inherit (pkgs) z3;}; 229635 + 229605 229636 "sbv" = callPackage 229606 229637 ({ mkDerivation, array, async, base, bench-show, bytestring 229607 229638 , containers, deepseq, directory, doctest, filepath, gauge, Glob