Skip to content

Instantly share code, notes, and snippets.

@moretea
Created January 7, 2017 20:29
Show Gist options
  • Save moretea/f469bcdd377de90b996b169fcde495ef to your computer and use it in GitHub Desktop.
Save moretea/f469bcdd377de90b996b169fcde495ef to your computer and use it in GitHub Desktop.
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