Advertisement
Guest User

una.nix

a guest
Nov 4th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. # Generated using stack2nix 0.1.3.0.
  2. #
  3. # Only works with sufficiently recent nixpkgs, e.g. "NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs/archive/21a8239452adae3a4717772f4e490575586b2755.tar.gz".
  4.  
  5. { pkgs ? (import <nixpkgs> {})
  6. , compiler ? pkgs.haskell.packages.ghc802
  7. , ghc ? pkgs.haskell.compiler.ghc802
  8. }:
  9.  
  10. with (import <nixpkgs/pkgs/development/haskell-modules/lib.nix> { inherit pkgs; });
  11.  
  12. let
  13. stackPackages = { callPackage, pkgs, stdenv }:
  14. self: {
  15. una = callPackage ({ base, bytestring, cmdargs, directory, fetchgit, filepath, io-storage, mkDerivation, process, stdenv }:
  16. mkDerivation {
  17. pname = "una";
  18. version = "2.1.0";
  19. src = fetchgit {
  20. url = "https://github.com/jwiegley/una.git";
  21. sha256 = "1iibk953iqi3dh2lp9v1jk1jl7mf5sgl5p9v06g2k2vdih7lw954";
  22. rev = "4cfa6d290ac9fbb9082d4a5c89abbb63c69f9246";
  23. };
  24. isLibrary = false;
  25. isExecutable = true;
  26. executableHaskellDepends = [
  27. base
  28. bytestring
  29. cmdargs
  30. directory
  31. filepath
  32. io-storage
  33. process
  34. ];
  35. doHaddock = false;
  36. doCheck = false;
  37. homepage = "https://github.com/jwiegley/una";
  38. description = "Universal un-archiver utility";
  39. license = stdenv.lib.licenses.bsd3;
  40. }) {cmdargs = [];};
  41. };
  42. in
  43. compiler.override {
  44. initialPackages = stackPackages;
  45. configurationCommon = { ... }: self: super: {};
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement