about summary refs log tree commit diff
path: root/pkgs/development/compilers/unison/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/unison/default.nix')
-rw-r--r--pkgs/development/compilers/unison/default.nix59
1 files changed, 0 insertions, 59 deletions
diff --git a/pkgs/development/compilers/unison/default.nix b/pkgs/development/compilers/unison/default.nix
deleted file mode 100644
index 587ca9d7f35e..000000000000
--- a/pkgs/development/compilers/unison/default.nix
+++ /dev/null
@@ -1,59 +0,0 @@
-{ lib
-, autoPatchelfHook
-, fetchurl
-, gmp
-, less
-, makeWrapper
-, libb2
-, ncurses6
-, openssl
-, stdenv
-, zlib
-}:
-
-stdenv.mkDerivation (finalAttrs: {
-  pname = "unison-code-manager";
-  version = "0.5.22";
-
-  src = if stdenv.isDarwin then
-    fetchurl {
-      url = "https://github.com/unisonweb/unison/releases/download/release/${finalAttrs.version}/ucm-macos.tar.gz";
-      hash = "sha256-Exgi0eKk+ZngpnbfY/btHf+uiXcmummnWKfmCUESWgc=";
-    }
-  else
-    fetchurl {
-      url = "https://github.com/unisonweb/unison/releases/download/release/${finalAttrs.version}/ucm-linux.tar.gz";
-      hash = "sha256-EWfyqaFtGJJ5GE0mRTtNC9hHOzbqG9MsvRh5sFq5pRY=";
-    };
-
-  # The tarball is just the prebuilt binary, in the archive root.
-  sourceRoot = ".";
-  dontBuild = true;
-  dontConfigure = true;
-
-  nativeBuildInputs = [ makeWrapper ]
-    ++ lib.optional (!stdenv.isDarwin) autoPatchelfHook;
-  buildInputs = lib.optionals (!stdenv.isDarwin) [ gmp ncurses6 zlib ];
-
-  installPhase = ''
-    mkdir -p $out/{bin,lib}
-    mv runtime $out/lib/runtime
-    mv ui $out/ui
-    mv unison $out/unison
-    makeWrapper $out/unison/unison $out/bin/ucm \
-      --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libb2 openssl ]} \
-      --prefix PATH ":" "${lib.makeBinPath [ less ]}" \
-      --add-flags "--runtime-path $out/lib/runtime/bin/unison-runtime" \
-      --set UCM_WEB_UI "$out/ui"
-  '';
-
-  meta = with lib; {
-    description = "Modern, statically-typed purely functional language";
-    homepage = "https://unisonweb.org/";
-    license = with licenses; [ mit bsd3 ];
-    mainProgram = "ucm";
-    maintainers = with maintainers; [ ceedubs sellout virusdave ];
-    platforms = [ "x86_64-darwin" "x86_64-linux" "aarch64-darwin" ];
-    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
-  };
-})