Merge pull request #208350 from sir4ur0n/addCodeMaat
code-maat: init at 1.0.3
This commit is contained in:
commit
0a918e80ac
45
pkgs/development/tools/code-maat/default.nix
Normal file
45
pkgs/development/tools/code-maat/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchurl
|
||||
, makeBinaryWrapper
|
||||
, jre
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "code-maat";
|
||||
version = "1.0.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/adamtornhill/code-maat/releases/download/v${finalAttrs.version}/code-maat-${finalAttrs.version}-standalone.jar";
|
||||
hash = "sha256-cAaGX9BX27Z2GN583YmhagWsBIygVc0ZDkzbspM9OJw=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
installPhase =
|
||||
let
|
||||
jar = "$out/libexec/code-maat/code-maat.jar";
|
||||
in
|
||||
''
|
||||
runHook preInstall
|
||||
|
||||
install -D ${finalAttrs.src} ${jar}
|
||||
mkdir -p "$out/bin"
|
||||
makeWrapper "${jre}/bin/java" "$out/bin/code-maat" \
|
||||
--add-flags "-jar ${jar}"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A command line tool to mine and analyze data from version-control systems";
|
||||
homepage = "https://github.com/adamtornhill/code-maat";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ sir4ur0n ];
|
||||
};
|
||||
})
|
|
@ -42198,4 +42198,6 @@ with pkgs;
|
|||
yazi = callPackage ../applications/file-managers/yazi { inherit (darwin.apple_sdk.frameworks) Foundation; };
|
||||
|
||||
ssl-proxy = callPackage ../tools/networking/ssl-proxy { };
|
||||
|
||||
code-maat = callPackage ../development/tools/code-maat {};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue