nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

vagrant: 2.3.7 -> 2.4.1; adopt orphaned package

Open tylerjl opened this issue 11 months ago • 3 comments

Description of changes

Vagrant 2.4.1 is out; which is mostly a typical gemset update but also changes the license to BSL 1.1.

I also saw that the package has no maintainer, so I added myself. I don't consider myself expert at using (or writing code against) Vagrant, but I figured it was better than listing nobody there since I'm touching it most recently.

Things done

  • Built on platform(s)
    • [x] x86_64-linux
    • [ ] aarch64-linux
    • [ ] x86_64-darwin
    • [ ] aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • [ ] sandbox = relaxed
    • [ ] sandbox = true
  • [ ] Tested, as applicable:
  • [x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • [x] Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • ~[ ] (Package updates) Added a release notes entry if the change is major or breaking~
    • ~[ ] (Module updates) Added a release notes entry if the change is significant~
    • ~[ ] (Module addition) Added a release notes entry if adding a new NixOS module~
  • [x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

tylerjl avatar Mar 01 '24 22:03 tylerjl

Hello, I had a problem with the 2.3.7 of vagrant when trying to run the metasploitable 3 vagrant file with windows machine, I get this error. image After some research I found that adding openssl_legacy to the buildInputs of Vagrant solved this error. I don't know if it is a good thing to add or not. But i just wanted to address this issue.

NB: The screenshot was taken by running vagrant up using vagrant that is built with this PR.

yassineibr avatar Mar 05 '24 09:03 yassineibr

@yassineibr oh wow, part of my intent with this PR was to chase down the exact same bug! :smile: I wasn't able to make it work wish just a version update, though, so I'll test the same thing locally and I'm more than happy to add that to buildInputs for a fix. Thank you for bringing it up here

tylerjl avatar Mar 05 '24 21:03 tylerjl

{
  # Override nixpkgs to use the latest set of node packages
  inputs.nixpkgs.url = "github:tylerjl/nixpkgs/vagrant-2-4";
  inputs.flake-utils.url = "github:numtide/flake-utils";

  outputs = {
    self,
    nixpkgs,
    flake-utils,
  }:
    flake-utils.lib.eachDefaultSystem
    (system: let
      pkgs = import nixpkgs {
        inherit system;
        config.allowUnfree = true;
        overlays = [(final: prev: {
          vagrant = prev.vagrant.overrideAttrs (old: {
            buildInputs = [prev.pkgs.openssl_legacy];
          });
        })];
      };
    in {
      devShells.default = pkgs.mkShell {
        buildInputs = with pkgs; [
          vagrant
        ];
      };
    });
}

using this flake I solved the problem.

yassineibr avatar Mar 05 '24 22:03 yassineibr

@yassineibr thanks; I added openssl and it resolved my issue so I went ahead and included that one in the latest commit since the _legacy variant sounds like it might get fully deprecated at some point :+1:

tylerjl avatar Mar 05 '24 22:03 tylerjl

yeah I can confirm that. Thanks for the PR.

yassineibr avatar Mar 05 '24 22:03 yassineibr