Merge pull request #278740 from TomaSajt/hydra-ant-logger
hydraAntLogger: make deterministic and clean up
This commit is contained in:
commit
441e18cc2e
1 changed files with 23 additions and 6 deletions
|
@ -1,4 +1,10 @@
|
||||||
{ fetchFromGitHub, lib, stdenv, ant, jdk }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, ant
|
||||||
|
, jdk
|
||||||
|
, canonicalize-jars-hook
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "hydra-ant-logger";
|
pname = "hydra-ant-logger";
|
||||||
|
@ -8,19 +14,30 @@ stdenv.mkDerivation {
|
||||||
owner = "NixOS";
|
owner = "NixOS";
|
||||||
repo = "hydra-ant-logger";
|
repo = "hydra-ant-logger";
|
||||||
rev = "dae3224f4ed42418d3492bdf5bee4f825819006f";
|
rev = "dae3224f4ed42418d3492bdf5bee4f825819006f";
|
||||||
sha256 = "sha256-5oQ/jZfz7izTcYR+N801HYh4lH2MF54PCMnmA4CpRwc=";
|
hash = "sha256-5oQ/jZfz7izTcYR+N801HYh4lH2MF54PCMnmA4CpRwc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ant jdk ];
|
nativeBuildInputs = [
|
||||||
|
ant
|
||||||
|
jdk
|
||||||
|
canonicalize-jars-hook
|
||||||
|
];
|
||||||
|
|
||||||
buildPhase = "mkdir lib; ant";
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
mkdir lib
|
||||||
|
ant
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share/java
|
runHook preBuild
|
||||||
cp -v *.jar $out/share/java
|
install -Dm644 *.jar -t $out/share/java
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
homepage = "https://github.com/NixOS/hydra-ant-logger";
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue