2021-02-09 03:48:09 +00:00
|
|
|
{ mkDerivation, ansi-wl-pprint, avh4-lib, base, bimap, cmark
|
|
|
|
, containers, elm-format-lib, elm-format-test-lib, fetchgit, json
|
|
|
|
, lib, mtl, optparse-applicative, parsec, QuickCheck, quickcheck-io
|
|
|
|
, relude, tasty, tasty-hspec, tasty-hunit, tasty-quickcheck, text
|
2016-05-29 22:34:23 +01:00
|
|
|
}:
|
2021-02-09 19:27:30 +00:00
|
|
|
mkDerivation rec {
|
2016-05-29 22:34:23 +01:00
|
|
|
pname = "elm-format";
|
2021-02-09 03:48:09 +00:00
|
|
|
version = "0.8.5";
|
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";
|
2021-02-09 03:48:09 +00:00
|
|
|
sha256 = "0bcjkcs1dy1csz0mpk7d4b5wf93fsj9p86x8fp42mb0pipdd0bh6";
|
|
|
|
rev = "80f15d85ee71e1663c9b53903f2b5b2aa444a3be";
|
|
|
|
fetchSubmodules = true;
|
2016-05-29 22:34:23 +01:00
|
|
|
};
|
2019-08-09 07:31:16 +01:00
|
|
|
isLibrary = false;
|
2016-05-29 22:34:23 +01:00
|
|
|
isExecutable = true;
|
2021-02-09 03:48:09 +00:00
|
|
|
executableHaskellDepends = [
|
|
|
|
ansi-wl-pprint avh4-lib base containers elm-format-lib json
|
|
|
|
optparse-applicative relude text
|
2016-05-29 22:34:23 +01:00
|
|
|
];
|
|
|
|
testHaskellDepends = [
|
2021-02-09 03:48:09 +00:00
|
|
|
ansi-wl-pprint avh4-lib base bimap cmark containers elm-format-lib
|
|
|
|
elm-format-test-lib json mtl optparse-applicative parsec QuickCheck
|
|
|
|
quickcheck-io relude tasty tasty-hspec 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";
|
2021-01-22 11:25:31 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2021-02-09 03:48:09 +00:00
|
|
|
postPatch = ''
|
|
|
|
mkdir -p ./generated
|
|
|
|
cat <<EOHS > ./generated/Build_elm_format.hs
|
|
|
|
module Build_elm_format where
|
|
|
|
|
|
|
|
gitDescribe :: String
|
2021-02-09 19:27:30 +00:00
|
|
|
gitDescribe = "${version}"
|
2021-02-09 03:48:09 +00:00
|
|
|
EOHS
|
|
|
|
'';
|
2016-05-29 22:34:23 +01:00
|
|
|
}
|