Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ mkDerivation, aeson, ansi-wl-pprint, avh4-lib, base, bytestring
2, elm-format-lib, elm-format-test-lib, fetchgit, hspec, lib
3, optparse-applicative, QuickCheck, quickcheck-io, relude, tasty
4, tasty-hspec, tasty-hunit, tasty-quickcheck, text
5}:
6mkDerivation rec {
7 pname = "elm-format";
8 version = "0.8.7";
9 src = fetchgit {
10 url = "https://github.com/avh4/elm-format";
11 sha256 = "04l1bn4w8q3ifd6mc4mfrqxfbihmqnpfjdn6gr0x2jqcasjbk0bi";
12 rev = "b5cca4c26b473dab06e5d73b98148637e4770d45";
13 fetchSubmodules = true;
14 };
15 isLibrary = false;
16 isExecutable = true;
17 executableHaskellDepends = [
18 aeson ansi-wl-pprint avh4-lib base bytestring elm-format-lib
19 optparse-applicative relude text
20 ];
21 testHaskellDepends = [
22 aeson ansi-wl-pprint avh4-lib base bytestring elm-format-lib
23 elm-format-test-lib hspec optparse-applicative QuickCheck
24 quickcheck-io relude tasty tasty-hspec tasty-hunit tasty-quickcheck
25 text
26 ];
27 doHaddock = false;
28 homepage = "https://elm-lang.org";
29 description = "A source code formatter for Elm";
30 license = lib.licenses.bsd3;
31 mainProgram = "elm-format";
32 postPatch = ''
33 mkdir -p ./generated
34 cat <<EOHS > ./generated/Build_elm_format.hs
35 module Build_elm_format where
36
37 gitDescribe :: String
38 gitDescribe = "${version}"
39 EOHS
40 '';
41}