From 8dea8eeed97cc2dee5b48056917f677935e80c7f Mon Sep 17 00:00:00 2001 From: Mostly Void <7rat13@gmail.com> Date: Fri, 7 Jul 2023 11:16:51 +0530 Subject: [PATCH] virter: init at 0.25.0 --- .../virtualization/virter/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/applications/virtualization/virter/default.nix diff --git a/pkgs/applications/virtualization/virter/default.nix b/pkgs/applications/virtualization/virter/default.nix new file mode 100644 index 000000000000..6a0b94999000 --- /dev/null +++ b/pkgs/applications/virtualization/virter/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "virter"; + version = "0.25.0"; + + src = fetchFromGitHub { + owner = "LINBIT"; + repo = "virter"; + rev = "v${version}"; + hash = "sha256-NIZBaPYFFH3MG2M7rF39TW8sLVR44SA37ZU3gOPwAFU="; + }; + + vendorHash = "sha256-cVOxRrsDdtlDSJ3WRDNk8nqt7ztz4GSRIf6FDDBxvPc="; + + 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 = "A 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bbd930189032..5b70c176a45e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35085,6 +35085,8 @@ with pkgs; viw = callPackage ../applications/editors/viw { }; + virter = callPackage ../applications/virtualization/virter { }; + virt-viewer = callPackage ../applications/virtualization/virt-viewer { }; virt-top = callPackage ../applications/virtualization/virt-top { };