nixpkgs/pkgs/development/compilers/elm/packages/elm-format.nix

41 lines
1.3 KiB
Nix
Raw Normal View History

2018-10-03 18:41:58 +00:00
{ mkDerivation, fetchgit, ansi-terminal, ansi-wl-pprint, base, binary
2019-08-09 06:31:16 +00:00
, bytestring, cmark, containers, directory, filepath, free, HUnit
, indents, json, mtl, optparse-applicative, parsec, process
2018-10-03 18:41:58 +00:00
, QuickCheck, quickcheck-io, split, stdenv, tasty, tasty-golden
, tasty-hunit, tasty-quickcheck, text
}:
mkDerivation {
pname = "elm-format";
2019-08-09 06:31:16 +00:00
version = "0.8.2";
src = fetchgit {
url = "https://github.com/avh4/elm-format";
2019-08-09 06:31:16 +00:00
sha256 = "0ly37fszrfviwqgrww57ikdcr7i8lcpczhqm8xqp5s7mrlpdxv7z";
rev = "ab3627cce01e5556b3fe8c2b5e3d92b80bfc74af";
};
2018-10-03 18:41:58 +00:00
postPatch = ''
2019-08-09 06:31:16 +00:00
mkdir -p ./generated
cat <<EOHS > ./generated/Build_elm_format.hs
module Build_elm_format where
gitDescribe :: String
gitDescribe = "0.8.2"
EOHS
2018-10-03 18:41:58 +00:00
'';
2019-08-09 06:31:16 +00:00
isLibrary = false;
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
];
2017-11-06 13:47:33 +00:00
executableHaskellDepends = [ base ];
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
];
2018-08-25 10:52:48 +00:00
doHaddock = false;
homepage = "https://elm-lang.org";
description = "A source code formatter for Elm";
license = stdenv.lib.licenses.bsd3;
}