about summary refs log tree commit diff
path: root/pkgs/development/compilers/mrustc/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/mrustc/default.nix')
-rw-r--r--pkgs/development/compilers/mrustc/default.nix55
1 files changed, 0 insertions, 55 deletions
diff --git a/pkgs/development/compilers/mrustc/default.nix b/pkgs/development/compilers/mrustc/default.nix
deleted file mode 100644
index 1305843a7fa7..000000000000
--- a/pkgs/development/compilers/mrustc/default.nix
+++ /dev/null
@@ -1,55 +0,0 @@
-{ lib, stdenv
-, fetchFromGitHub
-, zlib
-}:
-
-let
-  version = "0.10.1";
-  tag = "v${version}";
-  rev = "b6754f574f8846eb842feba4ccbeeecb10bdfacc";
-in
-
-stdenv.mkDerivation rec {
-  pname = "mrustc";
-  inherit version;
-
-  # Always update minicargo.nix and bootstrap.nix in lockstep with this
-  src = fetchFromGitHub {
-    owner = "thepowersgang";
-    repo = "mrustc";
-    rev = tag;
-    hash = "sha256-sYnx5dUTaQbK4ugnSzAJwIUwZKPUhThmNA+WlY+LEWc=";
-  };
-
-  postPatch = ''
-    sed -i 's/\$(shell git show --pretty=%H -s)/${rev}/' Makefile
-    sed -i 's/\$(shell git symbolic-ref -q --short HEAD || git describe --tags --exact-match)/${tag}/' Makefile
-    sed -i 's/\$(shell git diff-index --quiet HEAD; echo $$?)/0/' Makefile
-    sed '1i#include <limits>' -i src/trans/codegen_c.cpp
-  '';
-
-  strictDeps = true;
-  buildInputs = [ zlib ];
-  enableParallelBuilding = true;
-
-  installPhase = ''
-    runHook preInstall
-    mkdir -p $out/bin
-    cp bin/mrustc $out/bin
-    runHook postInstall
-  '';
-
-  meta = with lib; {
-    description = "Mutabah's Rust Compiler";
-    mainProgram = "mrustc";
-    longDescription = ''
-      In-progress alternative rust compiler, written in C++.
-      Capable of building a fully-working copy of rustc,
-      but not yet suitable for everyday use.
-    '';
-    inherit (src.meta) homepage;
-    license = licenses.mit;
-    maintainers = with maintainers; [ progval r-burns ];
-    platforms = [ "x86_64-linux" ];
-  };
-}