add hydra jobs
This commit is contained in:
parent
c90059f532
commit
fbe4fe643a
2 changed files with 27 additions and 23 deletions
11
flake.nix
11
flake.nix
|
@ -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
1
result
|
@ -1 +0,0 @@
|
|||
/nix/store/llwxk8hih9hrw235472f14d2ds4m4qyh-invtracker-server-20220813100940
|
Loading…
Reference in a new issue