textidote: init at 0.8.2

This commit is contained in:
Simon Bruder 2021-05-13 09:41:26 +02:00
parent 9356154fb1
commit cdf968d946
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 33 additions and 0 deletions

View file

@ -26,6 +26,8 @@
deemix = callPythonPackage ./deemix { };
textidote = callPackage ./textidote { };
VisiCut = callPackage ./VisiCut { };
};
} // flake-utils.lib.eachDefaultSystem (system:
@ -52,6 +54,7 @@
{
inherit (pkgs)
deemix
textidote
VisiCut;
};

30
textidote/default.nix Normal file
View file

@ -0,0 +1,30 @@
{ lib, stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "textidote";
version = "0.8.2";
src = fetchurl {
url = "https://github.com/sylvainhalle/textidote/releases/download/v${version}/${pname}.jar";
sha256 = "1h1fxllzv0hi4g1yf1hfsdga79z46g41n596k8c87yqq7l841s3n";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jre ];
dontUnpack = true;
installPhase = ''
mkdir -p $out/share
cp $src $out/share/${pname}.jar
makeWrapper ${jre}/bin/java $out/bin/${pname} --add-flags "-jar $out/share/${pname}.jar"
'';
meta = with lib; {
description = "A spelling, grammar and style checker for LaTeX documents";
homepage = "https://sylvainhalle.github.io/textidote/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}