Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 mkDerivation, 3 base, 4 lib, 5 # GHC source tree to build ghc-toolchain from 6 ghcSrc, 7 ghcVersion, 8}: 9mkDerivation { 10 pname = "ghc-platform"; 11 version = ghcVersion; 12 src = ghcSrc; 13 postUnpack = '' 14 sourceRoot="$sourceRoot/libraries/ghc-platform" 15 ''; 16 libraryHaskellDepends = [ base ]; 17 description = "Platform information used by GHC and friends"; 18 license = lib.licenses.bsd3; 19}