mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchurl
|
|
, makeBinaryWrapper
|
|
, jre
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "code-maat";
|
|
version = "1.0.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/adamtornhill/code-maat/releases/download/v${finalAttrs.version}/code-maat-${finalAttrs.version}-standalone.jar";
|
|
hash = "sha256-QoeuIDSQGERFD3aVR7xEl6DaGm0cf6b63IWHBeZ0O18=";
|
|
};
|
|
|
|
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 = "Command line tool to mine and analyze data from version-control systems";
|
|
mainProgram = "code-maat";
|
|
homepage = "https://github.com/adamtornhill/code-maat";
|
|
platforms = platforms.unix;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ sir4ur0n ];
|
|
};
|
|
})
|