2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, isabelle }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "isabelle-linter";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2024-1.0.1";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "isabelle-prover";
|
|
|
|
repo = "isabelle-linter";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "Isabelle2024-v1.0.1";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-oTrwcfJgbkpkIweDIyc6lZjAvdS9J4agPoJgZzH+PuQ=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
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/
|
|
|
|
'';
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Linter component for Isabelle";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/isabelle-prover/isabelle-linter";
|
|
|
|
maintainers = with maintainers; [ jvanbruegge ];
|
|
|
|
license = licenses.mit;
|
2023-05-24 13:37:59 +00:00
|
|
|
platforms = platforms.all;
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
}
|