Created
December 6, 2019 14:25
-
-
Save paulperegud/aa537dec30dd0a2a96bf9e20e146c756 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
pkgs = import (fetchTarball https://nixos.org/channels/nixos-19.09/nixexprs.tar.xz) {}; | |
newpkgs = import pkgs.path { overlays = [ (pkgsself: pkgssuper: { | |
packageOverrides = self: super: { | |
erlang = super.erlangR20; | |
}; | |
} ) ]; }; | |
newpkgs.stdenv.mkDerivation { | |
name = "my_env"; | |
buildInputs = [ | |
erlang | |
elixir_1_8 | |
rebar3 | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think
packageOverrides
is the wrong option, just replaceerlang
:Replacing
buildInputs = [ erlang ]
withbuildInputs = [ (builtins.trace erlang.version erlang) ]
prints out20.3.8.9
, so I think it's doing the right thing now.