blob: 91bf5ba32b68eb49e9a33f00b5d554e4ce971d50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ stdenv, lib, fetchFromGitHub, isabelle }:
stdenv.mkDerivation rec {
pname = "isabelle-linter";
version = "2023-1.0.0";
src = fetchFromGitHub {
owner = "isabelle-prover";
repo = "isabelle-linter";
rev = "Isabelle2023-v1.0.0";
sha256 = "sha256-q9+qN94NaTzvhbcNQj7yH/VVfs1QgCH8OU8HW+5+s9U=";
};
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;
};
}
|