about summary refs log tree commit diff
path: root/pkgs/applications/science/logic
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2020-03-17 06:06:49 -0500
committerAustin Seipp <aseipp@pobox.com>2020-03-17 17:19:40 -0500
commit2ef42e07fd5a178a73da7f67d69e687b48163729 (patch)
tree8a933144ae1bc625525549ace886c483b0b75286 /pkgs/applications/science/logic
parent5cd4fd5bc50a5ecca1ff2c19e34790776a1577be (diff)
downloadnixlib-2ef42e07fd5a178a73da7f67d69e687b48163729.tar
nixlib-2ef42e07fd5a178a73da7f67d69e687b48163729.tar.gz
nixlib-2ef42e07fd5a178a73da7f67d69e687b48163729.tar.bz2
nixlib-2ef42e07fd5a178a73da7f67d69e687b48163729.tar.lz
nixlib-2ef42e07fd5a178a73da7f67d69e687b48163729.tar.xz
nixlib-2ef42e07fd5a178a73da7f67d69e687b48163729.tar.zst
nixlib-2ef42e07fd5a178a73da7f67d69e687b48163729.zip
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>
Diffstat (limited to 'pkgs/applications/science/logic')
-rw-r--r--pkgs/applications/science/logic/mcy/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/applications/science/logic/mcy/default.nix b/pkgs/applications/science/logic/mcy/default.nix
index 9f239f221b18..ec9af1926318 100644
--- a/pkgs/applications/science/logic/mcy/default.nix
+++ b/pkgs/applications/science/logic/mcy/default.nix
@@ -7,28 +7,31 @@ let
 in
 stdenv.mkDerivation {
   pname = "mcy";
-  version = "2020.02.05";
+  version = "2020.03.16";
 
   src = fetchFromGitHub {
     owner  = "YosysHQ";
     repo   = "mcy";
-    rev    = "83deeddd12d583a89ad4aa1d2147efa4d6adc33c";
-    sha256 = "1i0cabiqr68zflwzc6z894i4n7k6m3hbfck58vzh8zb9jwxwizav";
+    rev    = "562c02375067428bb657f57faa5131ee1ab44051";
+    sha256 = "0q77v2hxnmv61zx5bl4lrqiavgvsiyb5qxdp9hnihimj1m30bc5h";
   };
 
   buildInputs = [ python ];
   patchPhase = ''
     substituteInPlace mcy.py \
       --replace yosys '${yosys}/bin/yosys' \
-      --replace 'os.execvp("mcy-dash"' "os.execvp(\"$out/libexec/mcy/mcy-dash.py\""
+      --replace 'os.execvp("mcy-dash"' "os.execvp(\"$out/bin/mcy-dash\""
+    substituteInPlace mcy-dash.py \
+      --replace 'app.run(debug=True)' 'app.run(host="0.0.0.0",debug=True)'
   '';
 
   # the build needs a bit of work...
   buildPhase = "true";
   installPhase = ''
-    mkdir -p $out/bin $out/libexec/mcy
-    install mcy.py $out/bin/mcy && chmod +x $out/bin/mcy
-    install mcy-dash.py $out/libexec/mcy/mcy-dash.py
+    mkdir -p $out/bin $out/share/mcy/dash
+    install mcy.py      $out/bin/mcy      && chmod +x $out/bin/mcy
+    install mcy-dash.py $out/bin/mcy-dash && chmod +x $out/bin/mcy-dash
+    cp -r dash/. $out/share/mcy/dash/.
   '';
 
   meta = {