add hydra jobs

This commit is contained in:
Morten Delenk 2022-08-13 17:44:23 +01:00
parent c90059f532
commit fbe4fe643a
No known key found for this signature in database
GPG key ID: 5130416C797067B6
2 changed files with 27 additions and 23 deletions

View file

@ -19,7 +19,7 @@
allowUnfree = true;
};
};
in {
in rec {
formatter = pkgs.alejandra;
devShells.default = let
androidSdk = pkgs.androidenv.androidPkgs_9_0.androidsdk;
@ -40,7 +40,7 @@
pname = "invtracker-deps";
version = self.lastModifiedDate;
src = self;
nativeBuildInputs = with pkgs; [ gradle openjdk_headless perl ];
nativeBuildInputs = with pkgs; [gradle openjdk_headless perl];
buildPhase = ''
export GRADLE_USER_HOME=$(mktemp -d)
# Fetch the maven deps
@ -59,7 +59,7 @@
pname = "invtracker-server";
version = self.lastModifiedDate;
src = self;
nativeBuildInputs = with pkgs; [ gradle openjdk_headless ];
nativeBuildInputs = with pkgs; [gradle openjdk_headless];
buildPhase = ''
sed -i 's#gradlePluginPortal..#maven { url "${invtracker-deps}/maven" }#' settings.gradle
sed -i 's#google..#maven { url "${invtracker-deps}/maven" }#' settings.gradle
@ -72,5 +72,10 @@
'';
};
};
hydraJobs =
if system == "x86_64-linux"
then devShells // packages
else {};
});
}

1
result
View file

@ -1 +0,0 @@
/nix/store/llwxk8hih9hrw235472f14d2ds4m4qyh-invtracker-server-20220813100940