1+ { system
2+ , compiler
3+ , flags
4+ , pkgs
5+ , hsPkgs
6+ , pkgconfPkgs
7+ , errorHandler
8+ , config
9+ , ... } :
10+ {
11+ flags = { } ;
12+ package = {
13+ specVersion = "1.18" ;
14+ identifier = { name = "ShellCheck" ; version = "0.10.0" ; } ;
15+ license = "GPL-3.0-only" ;
16+ copyright = "" ;
17+ 18+ author = "Vidar Holen" ;
19+ homepage = "https://www.shellcheck.net/" ;
20+ url = "" ;
21+ synopsis = "Shell script analysis tool" ;
22+ description = "The goals of ShellCheck are:\n \n * To point out and clarify typical beginner's syntax issues,\n that causes a shell to give cryptic error messages.\n \n * To point out and clarify typical intermediate level semantic problems,\n that causes a shell to behave strangely and counter-intuitively.\n \n * To point out subtle caveats, corner cases and pitfalls, that may cause an\n advanced user's otherwise working script to fail under future circumstances." ;
23+ buildType = "Simple" ;
24+ } ;
25+ components = {
26+ "library" = {
27+ depends = [
28+ ( hsPkgs . "aeson" or ( errorHandler . buildDepError "aeson" ) )
29+ ( hsPkgs . "array" or ( errorHandler . buildDepError "array" ) )
30+ ( hsPkgs . "base" or ( errorHandler . buildDepError "base" ) )
31+ ( hsPkgs . "bytestring" or ( errorHandler . buildDepError "bytestring" ) )
32+ ( hsPkgs . "containers" or ( errorHandler . buildDepError "containers" ) )
33+ ( hsPkgs . "deepseq" or ( errorHandler . buildDepError "deepseq" ) )
34+ ( hsPkgs . "Diff" or ( errorHandler . buildDepError "Diff" ) )
35+ ( hsPkgs . "fgl" or ( errorHandler . buildDepError "fgl" ) )
36+ ( hsPkgs . "filepath" or ( errorHandler . buildDepError "filepath" ) )
37+ ( hsPkgs . "mtl" or ( errorHandler . buildDepError "mtl" ) )
38+ ( hsPkgs . "parsec" or ( errorHandler . buildDepError "parsec" ) )
39+ ( hsPkgs . "QuickCheck" or ( errorHandler . buildDepError "QuickCheck" ) )
40+ ( hsPkgs . "regex-tdfa" or ( errorHandler . buildDepError "regex-tdfa" ) )
41+ ( hsPkgs . "transformers" or ( errorHandler . buildDepError "transformers" ) )
42+ ( hsPkgs . "directory" or ( errorHandler . buildDepError "directory" ) )
43+ ( hsPkgs . "process" or ( errorHandler . buildDepError "process" ) )
44+ ] ++ pkgs . lib . optional ( compiler . isGhc && compiler . version . lt "8.0" ) ( hsPkgs . "semigroups" or ( errorHandler . buildDepError "semigroups" ) ) ;
45+ buildable = true ;
46+ } ;
47+ exes = {
48+ "shellcheck" = {
49+ depends = [
50+ ( hsPkgs . "aeson" or ( errorHandler . buildDepError "aeson" ) )
51+ ( hsPkgs . "array" or ( errorHandler . buildDepError "array" ) )
52+ ( hsPkgs . "base" or ( errorHandler . buildDepError "base" ) )
53+ ( hsPkgs . "bytestring" or ( errorHandler . buildDepError "bytestring" ) )
54+ ( hsPkgs . "containers" or ( errorHandler . buildDepError "containers" ) )
55+ ( hsPkgs . "deepseq" or ( errorHandler . buildDepError "deepseq" ) )
56+ ( hsPkgs . "Diff" or ( errorHandler . buildDepError "Diff" ) )
57+ ( hsPkgs . "directory" or ( errorHandler . buildDepError "directory" ) )
58+ ( hsPkgs . "fgl" or ( errorHandler . buildDepError "fgl" ) )
59+ ( hsPkgs . "mtl" or ( errorHandler . buildDepError "mtl" ) )
60+ ( hsPkgs . "filepath" or ( errorHandler . buildDepError "filepath" ) )
61+ ( hsPkgs . "parsec" or ( errorHandler . buildDepError "parsec" ) )
62+ ( hsPkgs . "QuickCheck" or ( errorHandler . buildDepError "QuickCheck" ) )
63+ ( hsPkgs . "regex-tdfa" or ( errorHandler . buildDepError "regex-tdfa" ) )
64+ ( hsPkgs . "transformers" or ( errorHandler . buildDepError "transformers" ) )
65+ ( hsPkgs . "ShellCheck" or ( errorHandler . buildDepError "ShellCheck" ) )
66+ ] ++ pkgs . lib . optional ( compiler . isGhc && compiler . version . lt "8.0" ) ( hsPkgs . "semigroups" or ( errorHandler . buildDepError "semigroups" ) ) ;
67+ buildable = true ;
68+ } ;
69+ } ;
70+ tests = {
71+ "test-shellcheck" = {
72+ depends = [
73+ ( hsPkgs . "aeson" or ( errorHandler . buildDepError "aeson" ) )
74+ ( hsPkgs . "array" or ( errorHandler . buildDepError "array" ) )
75+ ( hsPkgs . "base" or ( errorHandler . buildDepError "base" ) )
76+ ( hsPkgs . "bytestring" or ( errorHandler . buildDepError "bytestring" ) )
77+ ( hsPkgs . "containers" or ( errorHandler . buildDepError "containers" ) )
78+ ( hsPkgs . "deepseq" or ( errorHandler . buildDepError "deepseq" ) )
79+ ( hsPkgs . "Diff" or ( errorHandler . buildDepError "Diff" ) )
80+ ( hsPkgs . "directory" or ( errorHandler . buildDepError "directory" ) )
81+ ( hsPkgs . "fgl" or ( errorHandler . buildDepError "fgl" ) )
82+ ( hsPkgs . "filepath" or ( errorHandler . buildDepError "filepath" ) )
83+ ( hsPkgs . "mtl" or ( errorHandler . buildDepError "mtl" ) )
84+ ( hsPkgs . "parsec" or ( errorHandler . buildDepError "parsec" ) )
85+ ( hsPkgs . "QuickCheck" or ( errorHandler . buildDepError "QuickCheck" ) )
86+ ( hsPkgs . "regex-tdfa" or ( errorHandler . buildDepError "regex-tdfa" ) )
87+ ( hsPkgs . "transformers" or ( errorHandler . buildDepError "transformers" ) )
88+ ( hsPkgs . "ShellCheck" or ( errorHandler . buildDepError "ShellCheck" ) )
89+ ] ;
90+ buildable = true ;
91+ } ;
92+ } ;
93+ } ;
94+ }
0 commit comments