File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 12
12
, gnused
13
13
, protobuf
14
14
, substituteAll
15
- , writeShellScriptBin
15
+ , writeBashBinChecked
16
+ , mantis-extvm-pb
16
17
} :
17
18
18
19
let
25
26
LD_LIBRARY_PATH = '''' ; #lib.makeLibraryPath [ libsonic ];
26
27
27
28
# filter out mentions of protobridge, which is unable to execute
28
- protoc-wrapper = writeShellScriptBin "protoc" ''
29
+ protoc-wrapper = writeBashBinChecked "protoc" ''
29
30
set -e
30
31
31
32
for f in "$@"; do
32
- echo '' ${f##*=}
33
+ echo " '' ${f##*=}"
33
34
done | grep protocbridge | xargs sed -i "1s|.*|#!${ runtimeShell } |"
34
35
35
36
exec ${ protobuf } /bin/protoc "$@"
36
37
'' ;
37
38
38
-
39
39
in sbt . mkDerivation rec {
40
40
pname = "mantis" ;
41
41
inherit src version ;
@@ -45,6 +45,9 @@ in sbt.mkDerivation rec {
45
45
preConfigure = ''
46
46
HOME=$TMPDIR
47
47
PROTOC_CACHE=.nix/protoc-cache
48
+
49
+ mkdir -p src/main/protobuf/extvm
50
+ cp ${ mantis-extvm-pb } /msg.proto src/main/protobuf/extvm/msg.proto
48
51
'' ;
49
52
50
53
# used by sbt-derivation to modify vendor derivation
Original file line number Diff line number Diff line change @@ -2,26 +2,27 @@ rev: final: prev: {
2
2
jre = prev . jdk8 . jre ;
3
3
4
4
mantis = final . callPackage ./mantis.nix {
5
- src = builtins . fetchGit {
6
- url = "https://github.com/input-output-hk/mantis" ;
7
- ref = "develop" ;
8
- rev = rev ;
9
- submodules = true ;
10
- } ;
5
+ src = ../. ;
11
6
} ;
12
7
13
8
mantis-hash = { ref , rev } :
14
9
( final . callPackage ./mantis.nix {
15
10
src = builtins . fetchGit {
16
11
url = "https://github.com/input-output-hk/mantis" ;
17
12
inherit rev ref ;
18
- submodules = true ;
19
13
} ;
20
14
} ) . overrideAttrs ( _ : {
21
15
outputHash = "sha256-0000000000000000000000000000000000000000000=" ;
22
16
outputHashMode = "recursive" ;
23
17
} ) ;
24
18
19
+ # Last change to this was in 2018, so to avoid submodules we just clone
20
+ # ourselves instead.
21
+ mantis-extvm-pb = builtins . fetchGit {
22
+ url = "https://github.com/input-output-hk/mantis-extvm-pb" ;
23
+ rev = "53eb31f3c59f7200994915b834e626bd292df7ed" ;
24
+ } ;
25
+
25
26
writeBashChecked = final . writers . makeScriptWriter {
26
27
interpreter = "${ final . bashInteractive } /bin/bash" ;
27
28
check = final . writers . writeBash "shellcheck-check" ''
You can’t perform that action at this time.
0 commit comments