mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
6c2f4ebe8f
* Fix pip and pipenv
Since the latest nixpkgs update pip is no longer contained in the python
derivation but instead in its own `python37Packages.pip` derivation.
Additionally the pipenv version in nixpkgs is incompatible with the pip
version, as pipenv expects a module to be present which is only
available in later versions. This change overrides pip with a version
update to fix this issue.
Upstream nixpkgs has already updated pip accordingly
* Update nixpkgs
The versions of `pipenv` and `pip` contained in `nixpkgs` where
previously incompatible. They are compatible in the new `nixpkgs`
revision.
Just overriding the pip version caused too many uncached rebuilds and
timed out on CI.
* Update nixpkgs further
To incorporate
efce3c1367
* Try to build fewer GHCs
* nix: drop sass override
nixpkgs-unstable is on the same page.
* nix: use upstream chromedriver
* nix: remove pex override
* nix: drop pypi2nix override
* Fix bazel-watcher
* try upgrading rules go
* Remove overrides for ibazel
* Upgrade rules_go
* Remove references to sass overrides
44 lines
1.5 KiB
Nix
44 lines
1.5 KiB
Nix
# This file defines the GHC along with any overrides that is used for the
|
|
# nix builds and stack builds.
|
|
|
|
{ system ? builtins.currentSystem
|
|
, pkgs ? import ./nixpkgs.nix { inherit system; }
|
|
}:
|
|
|
|
let
|
|
hsLib = pkgs.haskell.lib;
|
|
|
|
hsOverrides = with pkgs.haskell.lib; with pkgs.lib; (self: super:
|
|
rec {
|
|
# Override the default mkDerivation.
|
|
# NOTE: Changing this in any way will cause a full rebuild of every package!
|
|
mkDerivation = args: super.mkDerivation (args // {
|
|
enableLibraryProfiling = args.enableLibraryProfiling or true;
|
|
doCheck = args.doCheck or false;
|
|
});
|
|
withPackages = packages: super.callPackage ./with-packages-wrapper.nix {
|
|
inherit (self) ghc llvmPackages;
|
|
inherit packages;
|
|
};
|
|
ghcWithPackages = selectFrom: withPackages (selectFrom self);
|
|
});
|
|
|
|
ghc = pkgs.callPackage ./overrides/ghc-8.6.5.nix rec {
|
|
bootPkgs = pkgs.haskell.packages.ghc863Binary;
|
|
inherit (pkgs.python3Packages) sphinx;
|
|
inherit (pkgs) buildLlvmPackages;
|
|
enableIntegerSimple = true;
|
|
enableRelocatedStaticLibs = true;
|
|
libffi = null;
|
|
};
|
|
|
|
packages = pkgs.callPackage "${toString pkgs.path}/pkgs/development/haskell-modules" {
|
|
haskellLib = pkgs.haskell.lib;
|
|
inherit ghc;
|
|
buildHaskellPackages = packages;
|
|
compilerConfig = pkgs.callPackage "${toString pkgs.path}/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix" { haskellLib = pkgs.haskell.lib; };
|
|
overrides = hsOverrides;
|
|
};
|
|
|
|
in packages
|