mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-16 01:03:02 +00:00
dc636c3919
This reverts commit d07d51c7ec
.
36 lines
833 B
Nix
36 lines
833 B
Nix
let
|
|
pkgs = import <nixpkgs> {};
|
|
virt-manager-without-menu = pkgs.virt-viewer.overrideAttrs(x: {
|
|
patches = [
|
|
./patches/0001-Remove-menu-bar.patch
|
|
./patches/0002-Do-not-grab-keyboard-mouse.patch
|
|
./patches/0003-Use-name-of-appvm-applications-as-a-title.patch
|
|
];
|
|
});
|
|
in with pkgs;
|
|
|
|
buildGoPackage rec {
|
|
pname = "appvm";
|
|
version = "master";
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
goPackagePath = "code.dumpstack.io/tools/${pname}";
|
|
|
|
src = ./.;
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
postFixup = ''
|
|
wrapProgram $bin/bin/appvm \
|
|
--prefix PATH : "${lib.makeBinPath [ nix virt-manager-without-menu ]}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Nix-based app VMs";
|
|
homepage = "https://code.dumpstack.io/tools/${pname}";
|
|
maintainers = [ lib.maintainers.dump_stack ];
|
|
license = lib.licenses.gpl3;
|
|
};
|
|
}
|