Clean up nix expressions
This commit is contained in:
+8
-8
@@ -17,14 +17,14 @@ stdenvNoCC.mkDerivation {
|
||||
];
|
||||
|
||||
buildPhase = let
|
||||
properties = writeText "sqlite.properties" ''
|
||||
sqliteProperties = writeText "sqlite.properties" ''
|
||||
description=SQLite
|
||||
driver=org.sqlite.JDBC
|
||||
driverPath=${sqlite-jdbc}/share/java/sqlite-jdbc-3.25.2.jar
|
||||
connectionSpec=jdbc:sqlite:<db>
|
||||
'';
|
||||
|
||||
args = writeText "schemaspy.properties" ''
|
||||
schemaspyProperties = writeText "schemaspy.properties" ''
|
||||
schemaspy.cat="%"
|
||||
schemaspy.t=sqlite
|
||||
schemaspy.sso=true
|
||||
@@ -37,17 +37,17 @@ stdenvNoCC.mkDerivation {
|
||||
runHook preBuild
|
||||
|
||||
sqlite3 jadb.sqlite ".schema" > schema.sql
|
||||
cp ${args} ./schemaspy.properties
|
||||
schemaspy -t ${properties}
|
||||
cp "${schemaspyProperties}" ./schemaspy.properties
|
||||
schemaspy -t "${sqliteProperties}"
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preBuild
|
||||
runHook preInstall
|
||||
|
||||
cp -r docs $out
|
||||
cp -r docs "$out"
|
||||
|
||||
runHook postBuild
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user