From 049e65e34fcc7002cc7a9f9298d515b4afd5a57e Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 23 Aug 2022 18:13:58 +0200 Subject: [PATCH] Add hydra jobs --- flake.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 0351739..1d0a051 100644 --- a/flake.nix +++ b/flake.nix @@ -101,9 +101,9 @@ buildPhase = '' gzip -dkc ${JMdictSrc} > JMdict.xml gzip -dkc ${JMdictWithExamplesSrc} > JMdict_with_examples.xml + xmlformat -i JMdict.xml + xmlformat -i JMdict_with_examples.xml ''; - # xmlformat -i JMdict.xml - # xmlformat -i JMdict_with_examples.xml installPhase = '' mkdir $out @@ -214,6 +214,7 @@ name = "docs"; src = self.packages.${system}.database; nativeBuildInputs = with pkgs; [ + sqlite schemaspy sqlite-jdbc ]; @@ -236,6 +237,7 @@ ''; in '' + sqlite3 main.db ".schema" > schema.sql cp ${args} ./schemaspy.properties ls schemaspy -t ${properties} @@ -246,6 +248,10 @@ ''; }; }; + + hydraJobs = { + inherit (self.packages.${system}) database docs; + }; }; }