mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
38 lines
894 B
Nix
38 lines
894 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "virter";
|
|
version = "0.27.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LINBIT";
|
|
repo = "virter";
|
|
rev = "v${version}";
|
|
hash = "sha256-sfO704nZnsSpSokJUwc3ucPBlKIi3cbZUG1dwbKDnFw=";
|
|
};
|
|
|
|
vendorHash = "sha256-NmA1rLWSX03zurGZWvXv61TSB9hecEfi7Hx9yi7QL/c=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/LINBIT/virter/cmd.version=${version}"
|
|
"-X github.com/LINBIT/virter/cmd.builddate=builtByNix"
|
|
"-X github.com/LINBIT/virter/cmd.githash=builtByNix"
|
|
];
|
|
|
|
# requires network access
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Command line tool for simple creation and cloning of virtual machines based on libvirt";
|
|
homepage = "https://github.com/LINBIT/virter";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dit7ya ];
|
|
mainProgram = "virter";
|
|
};
|
|
}
|