You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.2 KiB

  1. { nixpkgs ? import <nixpkgs> {}, compiler ? "default", doBenchmark ? false }:
  2. let
  3. inherit (nixpkgs) pkgs;
  4. f = { mkDerivation, ansi-terminal, base, bytestring
  5. , classy-prelude, errors, file-embed, microlens, microlens-th, mtl
  6. , optparse-applicative, stdenv, template-haskell, text
  7. , transformers, turtle, filepath, casing
  8. }:
  9. mkDerivation {
  10. pname = "umu-react-basic";
  11. version = "0.1.0.0";
  12. src = ./.;
  13. isLibrary = true;
  14. isExecutable = true;
  15. libraryHaskellDepends = [
  16. ansi-terminal base bytestring classy-prelude errors file-embed
  17. microlens microlens-th mtl optparse-applicative template-haskell
  18. text transformers turtle filepath casing
  19. ];
  20. executableHaskellDepends = [ base classy-prelude ];
  21. license = "unknown";
  22. hydraPlatforms = stdenv.lib.platforms.none;
  23. };
  24. haskellPackages = if compiler == "default"
  25. then pkgs.haskellPackages
  26. else pkgs.haskell.packages.${compiler};
  27. variant = if doBenchmark then pkgs.haskell.lib.doBenchmark else pkgs.lib.id;
  28. drv = variant (haskellPackages.callPackage f {});
  29. in
  30. if pkgs.lib.inNixShell then drv.env else drv