diff options
Diffstat (limited to 'pkgs/by-name/is/isabelle/components/isabelle-linter.nix')
-rw-r--r-- | pkgs/by-name/is/isabelle/components/isabelle-linter.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/by-name/is/isabelle/components/isabelle-linter.nix b/pkgs/by-name/is/isabelle/components/isabelle-linter.nix new file mode 100644 index 0000000000000..1be4ac532d05e --- /dev/null +++ b/pkgs/by-name/is/isabelle/components/isabelle-linter.nix @@ -0,0 +1,35 @@ +{ stdenv, lib, fetchFromGitHub, isabelle }: + +stdenv.mkDerivation rec { + pname = "isabelle-linter"; + version = "2024-1.0.1"; + + src = fetchFromGitHub { + owner = "isabelle-prover"; + repo = "isabelle-linter"; + rev = "Isabelle2024-v1.0.1"; + sha256 = "sha256-oTrwcfJgbkpkIweDIyc6lZjAvdS9J4agPoJgZzH+PuQ="; + }; + + nativeBuildInputs = [ isabelle ]; + + buildPhase = '' + export HOME=$TMP + isabelle components -u $(pwd) + isabelle scala_build + ''; + + installPhase = '' + dir=$out/Isabelle${isabelle.version}/contrib/${pname}-${version} + mkdir -p $dir + cp -r * $dir/ + ''; + + meta = with lib; { + description = "Linter component for Isabelle"; + homepage = "https://github.com/isabelle-prover/isabelle-linter"; + maintainers = with maintainers; [ jvanbruegge ]; + license = licenses.mit; + platforms = platforms.all; + }; +} |