Skip to content

Instantly share code, notes, and snippets.

@LightAndLight
Created August 17, 2017 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LightAndLight/597e7f04151f5caf51740de237fc5a08 to your computer and use it in GitHub Desktop.
Save LightAndLight/597e7f04151f5caf51740de237fc5a08 to your computer and use it in GitHub Desktop.
Nix
with import <nixpkgs> { };
let
latest =
import (fetchTarball https://github.com/nixos/nixpkgs-channels/archive/129f8d7e999b1a1f0fceaecadca30211e34d85a6.tar.gz) {};
in
latest.haskellPackages.callPackage
./hpython.nix
{
inherit (import ./papa.nix latest.haskellPackages);
tasty-hedgehog = import ../tasty-hedgehog { pkgs = latest; };
}
{ mkDerivation, ansi-wl-pprint, base, charset, deriving-compat
, directory, filepath, hedgehog, papa, parsers, pretty, process
, stdenv, tasty, tasty-hspec, text, transformers, trifecta, tasty-hedgehog
}:
mkDerivation {
pname = "hpython";
version = "0.0.1.0";
src = ./.;
libraryHaskellDepends = [
base charset deriving-compat papa parsers pretty text transformers
trifecta
];
testHaskellDepends = [
ansi-wl-pprint base directory filepath hedgehog papa pretty process
tasty tasty-hspec text transformers trifecta tasty-hedgehog
];
homepage = "https://github.com/qfpl/hpython";
description = "Write Python using Haskell";
license = stdenv.lib.licenses.bsd3;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment