Skip to content

Instantly share code, notes, and snippets.

@shanesveller
Last active March 10, 2021 16:42
Show Gist options
  • Save shanesveller/ff6dda392c22d201ff0e0a430ed9902b to your computer and use it in GitHub Desktop.
Save shanesveller/ff6dda392c22d201ff0e0a430ed9902b to your computer and use it in GitHub Desktop.
{ mkDerivation }:
mkDerivation rec {
version = "1.7.2";
# nixnix-prefetch-url --unpack https://github.com/elixir-lang/elixir/archive/v1.7.2.tar.gz
sha256 = "0wnrx6wlpmr23ypm8za0c4dl952nj4rjylcsdzz0xrma92ylrqfq";
minimumOTPVersion = "18";
}
{ mkDerivation, fetchurl }:
mkDerivation rec {
version = "21.0.5";
# nix-prefetch-url --unpack https://github.com/erlang/otp/archive/OTP-21.0.5.tar.gz
sha256 = "08bw8zl1w0s47rsy52ryx0hgxacw37a39k5m20p8mfrvflkaqip7";
prePatch = ''
substituteInPlace configure.in --replace '`sw_vers -productVersion`' '10.10'
'';
}
{ pkgs ? import <nixpkgs> { } }: let
erlang = pkgs.beam.lib.callErlang ./erlang.nix {
wxGTK = pkgs.wxGTK30;
};
elixir = pkgs.beam.lib.callElixir ./elixir.nix {
inherit erlang;
debugInfo = true;
};
in pkgs.stdenv.mkDerivation {
name = "my_elixir_project";
version = "0.1.0";
buildInputs = [
erlang
elixir
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment