mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
30 lines
853 B
Nix
30 lines
853 B
Nix
{ pkgs, lib, rustPlatform, fetchFromGitLab, wireguard-tools, makeWrapper }:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wg-bond";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "cab404";
|
|
repo = "wg-bond";
|
|
rev = "v${version}";
|
|
hash = "sha256:04k0maxy39k7qzcsqsv1byddsmjszmnyjffrf22nzbvml83p3l0y";
|
|
};
|
|
|
|
cargoSha256 = "1nlzhkhk1y0jhj6n3wn4dm783ldsxn7dk0d2xjx6ylczf9z3gp12";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
postInstall = ''
|
|
wrapProgram $out/bin/wg-bond --set PATH ${
|
|
lib.makeBinPath [ wireguard-tools ]
|
|
}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Wireguard configuration manager";
|
|
homepage = "https://gitlab.com/cab404/wg-bond";
|
|
changelog = "https://gitlab.com/cab404/wg-bond/-/releases#v${version}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ cab404 ];
|
|
};
|
|
}
|