2018-10-03 19:41:58 +01:00
|
|
|
{ mkDerivation, fetchgit, ansi-terminal, ansi-wl-pprint, base, binary
|
2019-08-09 07:31:16 +01:00
|
|
|
, bytestring, cmark, containers, directory, filepath, free, HUnit
|
|
|
|
, indents, json, mtl, optparse-applicative, parsec, process
|
2018-10-03 19:41:58 +01:00
|
|
|
, QuickCheck, quickcheck-io, split, stdenv, tasty, tasty-golden
|
|
|
|
, tasty-hunit, tasty-quickcheck, text
|
2016-05-29 22:34:23 +01:00
|
|
|
}:
|
|
|
|
mkDerivation {
|
|
|
|
pname = "elm-format";
|
2020-02-29 22:34:11 +00:00
|
|
|
version = "0.8.3";
|
2016-05-29 22:34:23 +01:00
|
|
|
src = fetchgit {
|
2019-04-22 09:14:28 +01:00
|
|
|
url = "https://github.com/avh4/elm-format";
|
2020-02-29 22:34:11 +00:00
|
|
|
sha256 = "0n6lrqj6mq044hdyraj3ss5cg74dn8k4z05xmwn2apjpm146iaw8";
|
|
|
|
rev = "b97e3593d564a1e069c0a022da8cbd98ca2c5a4b";
|
2016-05-29 22:34:23 +01:00
|
|
|
};
|
2018-10-03 19:41:58 +01:00
|
|
|
postPatch = ''
|
2019-08-09 07:31:16 +01:00
|
|
|
mkdir -p ./generated
|
|
|
|
cat <<EOHS > ./generated/Build_elm_format.hs
|
|
|
|
module Build_elm_format where
|
|
|
|
|
|
|
|
gitDescribe :: String
|
2020-02-29 22:34:11 +00:00
|
|
|
gitDescribe = "0.8.3"
|
2019-08-09 07:31:16 +01:00
|
|
|
EOHS
|
2018-10-03 19:41:58 +01:00
|
|
|
'';
|
2019-08-09 07:31:16 +01:00
|
|
|
isLibrary = false;
|
2016-05-29 22:34:23 +01:00
|
|
|
isExecutable = true;
|
2017-11-06 13:47:33 +00:00
|
|
|
libraryHaskellDepends = [
|
|
|
|
ansi-terminal ansi-wl-pprint base binary bytestring containers
|
|
|
|
directory filepath free indents json mtl optparse-applicative
|
|
|
|
parsec process split text
|
2016-05-29 22:34:23 +01:00
|
|
|
];
|
2017-11-06 13:47:33 +00:00
|
|
|
executableHaskellDepends = [ base ];
|
2016-05-29 22:34:23 +01:00
|
|
|
testHaskellDepends = [
|
2017-11-06 13:47:33 +00:00
|
|
|
base cmark containers HUnit mtl parsec QuickCheck quickcheck-io
|
|
|
|
split tasty tasty-golden tasty-hunit tasty-quickcheck text
|
2016-05-29 22:34:23 +01:00
|
|
|
];
|
2018-08-25 11:52:48 +01:00
|
|
|
doHaddock = false;
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = "https://elm-lang.org";
|
2016-05-29 22:34:23 +01:00
|
|
|
description = "A source code formatter for Elm";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
}
|