Created
January 7, 2017 20:29
-
-
Save moretea/f469bcdd377de90b996b169fcde495ef to your computer and use it in GitHub Desktop.
This file contains hidden or 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
with (import <nixpkgs> {}); | |
let | |
v_old_1 = import (builtins.fetchTarball https://github.com/nixos/nixpkgs/archive/${sha1}.tar.gz) {}.; | |
v_old_2 = import (builtins.fetchTarball https://github.com/nixos/nixpkgs/archive/${sha1}.tar.gz) {}.; | |
v_old_3 = import (builtins.fetchTarball https://github.com/nixos/nixpkgs/archive/${sha1}.tar.gz) {}.; | |
in | |
{ | |
myPackage = stdenv.mkDerivation rec { | |
name = "different-editor-versions"; | |
buildInputs = [v_old1.emacs v_old2.vi]; | |
nano = pkgs.writeScript "special-nano" '' | |
#!${v_old_3.bash}/bin/bash | |
# do shit | |
${v_old3.nano} $@ | |
''; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment