Skip to content

Commit

Permalink
TEMP: Setup nix for custom version of repline
Browse files Browse the repository at this point in the history
  • Loading branch information
basile-henry committed Jun 18, 2020
1 parent 2651e9f commit b026a2e
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 21 deletions.
21 changes: 21 additions & 0 deletions nix/packages/exceptions.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ mkDerivation, base, mtl, QuickCheck, stdenv, stm
, template-haskell, test-framework, test-framework-hunit
, test-framework-quickcheck2, transformers
}:
mkDerivation {
pname = "exceptions";
version = "0.10.4";
sha256 = "4d0bfb4355cffcd67d300811df9d5fe44ea3594ed63750795bfc1f797abd84cf";
revision = "1";
editedCabalFile = "0b5m01nmaqzvvm1d07b3dnmcn47pmy943lydb2m7ibhilqkfya8p";
libraryHaskellDepends = [
base mtl stm template-haskell transformers
];
testHaskellDepends = [
base mtl QuickCheck stm template-haskell test-framework
test-framework-hunit test-framework-quickcheck2 transformers
];
homepage = "http://github.com/ekmett/exceptions/";
description = "Extensible optionally-pure exceptions";
license = stdenv.lib.licenses.bsd3;
}
23 changes: 23 additions & 0 deletions nix/packages/haskeline.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ mkDerivation, base, bytestring, containers, directory, exceptions
, filepath, HUnit, process, stdenv, stm, terminfo, text
, transformers, unix
}:
mkDerivation {
pname = "haskeline";
version = "0.8.0.0";
sha256 = "eb269b1d8d9c59a60677dd69dfa96f6cdb1a0cce9c6c28484d35e60674511a3f";
configureFlags = [ "-fterminfo" ];
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
base bytestring containers directory exceptions filepath process
stm terminfo transformers unix
];
executableHaskellDepends = [ base containers ];
testHaskellDepends = [
base bytestring containers HUnit process text unix
];
homepage = "https://github.com/judah/haskeline";
description = "A command-line interface for user input, written in Haskell";
license = stdenv.lib.licenses.bsd3;
}
16 changes: 0 additions & 16 deletions nix/packages/haskeline_0_7_3_1.nix

This file was deleted.

16 changes: 11 additions & 5 deletions nix/packages/repline.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
{ mkDerivation, base, containers, fail, haskeline, mtl, process
, stdenv
{ mkDerivation, base, containers, exceptions, fetchgit, haskeline
, mtl, process, stdenv
}:
mkDerivation {
pname = "repline";
version = "0.2.1.0";
sha256 = "45c3186ff35ed650ee9c641f545a30860eedc44107fefb21da36df47aeb1ae7b";
version = "0.4.0.0";
src = fetchgit {
url = "https://github.com/sdiehl/repline.git";
sha256 = "0a78lsr7z8nqfxx90fhdklrs5ddw5pky5f41mlc49p466952hvrm";
rev = "7bcff62977779e719b978e0284bf1eb4c6a857dc";
fetchSubmodules = true;
};
libraryHaskellDepends = [
base containers fail haskeline mtl process
base containers exceptions haskeline mtl process
];
testHaskellDepends = [ base containers mtl process ];
homepage = "https://github.com/sdiehl/repline";
description = "Haskeline wrapper for GHCi-like REPL interfaces";
license = stdenv.lib.licenses.mit;
Expand Down

0 comments on commit b026a2e

Please sign in to comment.