Advertisement
Guest User

Untitled

a guest
Mar 14th, 2021
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. {
  2. description = "regular flolloping dot com";
  3. inputs = {
  4. haskellNix.url = "github:input-output-hk/haskell.nix";
  5. nixpkgs.follows = "haskellNix/nixpkgs-unstable";
  6. flake-utils.url = "github:numtide/flake-utils";
  7. };
  8. outputs = { self, nixpkgs, flake-utils, haskellNix }:
  9. flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" ] (system:
  10. let
  11. overlays = [
  12. haskellNix.overlay
  13. (final: prev: {
  14. rfgen =
  15. final.haskell-nix.project' {
  16. src = ./.;
  17. compiler-nix-name = "ghc8104";
  18. };
  19. })
  20. ];
  21. pkgs = import nixpkgs { inherit system overlays; };
  22. flake = pkgs.rfgen.flake {};
  23. in flake // {
  24. defaultPackage = flake.packages."rfgen:exe:rfgen-exe";
  25. devShell = pkgs.rfgen.shellFor {
  26. tools = {
  27. cabal = "latest";
  28. hlint = "latest";
  29. haskell-language-server = "latest";
  30. };
  31. };
  32. });
  33. }
  34.  
  35.  
  36. ###### below this is output
  37.  
  38. @933.484 code/rfgen > nix build .#rfgen:exe:rfgen-exe
  39. warning: Git tree '/home/thorn/code/rfgen' is dirty
  40. trace: To make project.stack-nix a fixed-output derivation but not materialized, set `stack-sha256` to the output of the 'calculateMaterializedSha' script in 'passthru'.
  41. trace: To materialize project.stack-nix entirely, pass a writable path as the `materialized` argument and run the 'updateMaterialized' script in 'passthru'.
  42. trace: WARNING: `cleanSourceWith` called on /nix/store/ij58dr3dv7z0048aga1ql2xdryvsw63v-source without a `name`. Consider adding `name = "ij58dr3dv7z0048aga1ql2xdryvsw63v-source";`
  43. error: --- Error --------------------------------------------------------------------------------- nix
  44. builder for '/nix/store/6rrnnbx951j5fzkd8dnbyr9aqfyl7s7j-stack-repos.drv' failed with exit code 1; last 4 log lines:
  45. substituteStream(): WARNING: pattern '# nix-sha256:' doesn't match anything in file 'stack.yaml'
  46. stack-repos: AesonException "Error in $.resolver: expected String, but encountered Object"
  47. CallStack (from HasCallStack):
  48. error, called at lib/StackRepos.hs:36:15 in nix-tools-0.1.0.0-6VebEDwtbke5HHKMYxPZB7:StackRepos
  49. (use '--show-trace' to show detailed location information)
  50. @933.484 code/rfgen >
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement