mcy: 2020.02.05 -> 2020.03.16

Now with working web UI dashboard -- but no working GUI (yet!)

Signed-off-by: Austin Seipp <aseipp@pobox.com>

+10 -7
+10 -7
pkgs/applications/science/logic/mcy/default.nix
··· 7 7 in 8 8 stdenv.mkDerivation { 9 9 pname = "mcy"; 10 - version = "2020.02.05"; 10 + version = "2020.03.16"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "YosysHQ"; 14 14 repo = "mcy"; 15 - rev = "83deeddd12d583a89ad4aa1d2147efa4d6adc33c"; 16 - sha256 = "1i0cabiqr68zflwzc6z894i4n7k6m3hbfck58vzh8zb9jwxwizav"; 15 + rev = "562c02375067428bb657f57faa5131ee1ab44051"; 16 + sha256 = "0q77v2hxnmv61zx5bl4lrqiavgvsiyb5qxdp9hnihimj1m30bc5h"; 17 17 }; 18 18 19 19 buildInputs = [ python ]; 20 20 patchPhase = '' 21 21 substituteInPlace mcy.py \ 22 22 --replace yosys '${yosys}/bin/yosys' \ 23 - --replace 'os.execvp("mcy-dash"' "os.execvp(\"$out/libexec/mcy/mcy-dash.py\"" 23 + --replace 'os.execvp("mcy-dash"' "os.execvp(\"$out/bin/mcy-dash\"" 24 + substituteInPlace mcy-dash.py \ 25 + --replace 'app.run(debug=True)' 'app.run(host="0.0.0.0",debug=True)' 24 26 ''; 25 27 26 28 # the build needs a bit of work... 27 29 buildPhase = "true"; 28 30 installPhase = '' 29 - mkdir -p $out/bin $out/libexec/mcy 30 - install mcy.py $out/bin/mcy && chmod +x $out/bin/mcy 31 - install mcy-dash.py $out/libexec/mcy/mcy-dash.py 31 + mkdir -p $out/bin $out/share/mcy/dash 32 + install mcy.py $out/bin/mcy && chmod +x $out/bin/mcy 33 + install mcy-dash.py $out/bin/mcy-dash && chmod +x $out/bin/mcy-dash 34 + cp -r dash/. $out/share/mcy/dash/. 32 35 ''; 33 36 34 37 meta = {