diff options
Diffstat (limited to 'pkgs/development/compilers/erg/default.nix')
-rw-r--r-- | pkgs/development/compilers/erg/default.nix | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/pkgs/development/compilers/erg/default.nix b/pkgs/development/compilers/erg/default.nix deleted file mode 100644 index 3cf038159b32..000000000000 --- a/pkgs/development/compilers/erg/default.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ lib -, rustPlatform -, fetchFromGitHub -, makeWrapper -, python3 -, which -, stdenv -}: - -rustPlatform.buildRustPackage rec { - pname = "erg"; - version = "0.6.38"; - - src = fetchFromGitHub { - owner = "erg-lang"; - repo = "erg"; - rev = "v${version}"; - hash = "sha256-byoOvJ4SsRxFSbF4SwdDPlXNdMhypOgktnj4CkmAZuU="; - }; - - cargoHash = "sha256-QNykB9tXXlEyJupO5hkSN2ZqBZDwi0kl6IPHxkkaUxo="; - - nativeBuildInputs = [ - makeWrapper - python3 - which - ]; - - buildFeatures = [ "full" ]; - - env = { - BUILD_DATE = "1970/01/01 00:00:00"; - CASE_SENSITIVE = lib.boolToString (!stdenv.isDarwin); - GIT_HASH_SHORT = src.rev; - }; - - # TODO(figsoda): fix tests - doCheck = false; - - # the build script is impure and also assumes we are in a git repository - postPatch = '' - rm crates/erg_common/build.rs - ''; - - preBuild = '' - export HOME=$(mktemp -d) - export CARGO_ERG_PATH=$HOME/.erg - ''; - - postInstall = '' - mkdir -p $out/share - mv "$CARGO_ERG_PATH" $out/share/erg - - wrapProgram $out/bin/erg \ - --set-default ERG_PATH $out/share/erg - ''; - - meta = with lib; { - description = "Statically typed language that can deeply improve the Python ecosystem"; - mainProgram = "erg"; - homepage = "https://github.com/erg-lang/erg"; - changelog = "https://github.com/erg-lang/erg/releases/tag/${src.rev}"; - license = with licenses; [ asl20 mit ]; - maintainers = with maintainers; [ figsoda ]; - }; -} |