File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,10 @@ with pkgs.lib;
12
12
with pkgs . haskell . lib ;
13
13
let
14
14
localPkgs = import ./pkgs.nix ;
15
- extraFlagsStr = concatStringsSep "\\ \n " extraFlags ;
16
- operationFlag = operation : "--operation-to-generate \" ${ operation } \" \\ " ;
15
+ extraFlagsStr = concatStringsSep " " extraFlags ;
16
+ operationFlag = operation : "--operation-to-generate ' ${ operation } ' " ;
17
17
operationsFlags = optionalString ( operations != [ ] ) ''
18
- --omit-additional-operation-functions \
19
- ${ concatStringsSep "\n " ( map operationFlag operations ) }
18
+ --omit-additional-operation-functions ${ concatStringsSep " " ( map operationFlag operations ) }
20
19
'' ;
21
20
generatedCode = pkgs . stdenv . mkDerivation {
22
21
name = "generated-${ name } " ;
28
27
export LANG=C.utf8
29
28
export LC_ALL=C.utf8
30
29
30
+ set -x
31
+
31
32
openapi3-code-generator-exe ${ src } \
32
33
--module-name "${ moduleName } " \
33
34
--package-name "${ packageName } " \
34
35
--output-dir "$out" \
35
36
${ extraFlagsStr } \
36
- \
37
37
${ operationsFlags }
38
+
39
+ set +x
38
40
'' ;
39
41
} ;
40
42
generatedPackage = dontHaddock ( disableLibraryProfiling ( pkgs . haskellPackages . callCabal2nix name generatedCode { } ) ) ;
You can’t perform that action at this time.
0 commit comments