mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 22:45:08 +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.
38 lines
894 B
Nix
38 lines
894 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "virter";
|
|
version = "0.28.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LINBIT";
|
|
repo = "virter";
|
|
rev = "v${version}";
|
|
hash = "sha256-/AhC7eQE9ITvXcK228ZgcIOaSs0osjdFZI/0jHL7mqc=";
|
|
};
|
|
|
|
vendorHash = "sha256-v3rM45hijJKNxW43VhwcL3R2heZLA70RzqBXYeOYgRY=";
|
|
|
|
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";
|
|
};
|
|
}
|