textidote: init at 0.8.2
This commit is contained in:
parent
9356154fb1
commit
cdf968d946
|
@ -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
30
textidote/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue