Unverified Commit dc837121 authored by Ashish SHUKLA's avatar Ashish SHUKLA
Browse files

vaultwarden: 1.26.0 -> 1.27.0

parent 652e92b8
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -9,22 +9,16 @@ in

rustPlatform.buildRustPackage rec {
  pname = "vaultwarden";
  version = "1.26.0";
  version = "1.27.0";

  src = fetchFromGitHub {
    owner = "dani-garcia";
    repo = pname;
    rev = version;
    sha256 = "sha256-LPIc1odUBvjVJty3GYYFNhile4XBWMisLUeVtWH6xgE=";
    hash = "sha256-QvU1Y3syr6PZbTRebbZF4sEzI4lIj1enJe2F/gGfvQM=";
  };

  cargoSha256 = "sha256-IfseODaoqlPNBlVjS+9+rKXAOq29TgULMA/ogmqg0NA=";

  postPatch = ''
    # Upstream specifies 1.57; nixpkgs has 1.56 which also produces a working
    # vaultwarden when using RUSTC_BOOTSTRAP=1
    sed -ri 's/^rust-version = .*//g' Cargo.toml
  '';
  cargoHash = "sha256-lylRGg5pzJ4sBS3bY4ObMoJ5s5kakMLTtq1VOnmS5HM";

  nativeBuildInputs = [ pkg-config ];
  buildInputs = with lib; [ openssl ]