mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 00:43:24 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
31 lines
873 B
Nix
31 lines
873 B
Nix
{ 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";
|
|
};
|
|
|
|
cargoHash = "sha256-Itw3fnKfUW+67KKB2Y7tutGBTm3E8mGNhBL4MOGEn9o=";
|
|
|
|
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 ];
|
|
mainProgram = "wg-bond";
|
|
};
|
|
}
|