2020-01-08 20:52:29 +00:00
|
|
|
let
|
|
|
|
pkgs = import <nixpkgs> {};
|
2020-01-22 00:33:20 +00:00
|
|
|
virt-manager-without-menu = pkgs.virt-viewer.overrideAttrs(x: {
|
2020-01-22 00:50:54 +00:00
|
|
|
patches = [
|
|
|
|
./patches/0001-Remove-menu-bar.patch
|
|
|
|
./patches/0002-Do-not-grab-keyboard-mouse.patch
|
2020-01-22 02:21:19 +00:00
|
|
|
./patches/0003-Use-name-of-appvm-applications-as-a-title.patch
|
2020-01-22 00:50:54 +00:00
|
|
|
];
|
2020-01-22 00:33:20 +00:00
|
|
|
});
|
2020-01-08 20:52:29 +00:00
|
|
|
in with pkgs;
|
2020-01-04 18:20:27 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "appvm";
|
2020-01-08 11:20:26 +00:00
|
|
|
version = "master";
|
2020-01-04 18:20:27 +00:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
goPackagePath = "code.dumpstack.io/tools/${pname}";
|
|
|
|
|
2020-01-22 01:13:05 +00:00
|
|
|
src = ./.;
|
2020-01-04 18:20:27 +00:00
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $bin/bin/appvm \
|
2020-01-22 00:33:20 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ nix virt-manager-without-menu ]}"
|
2020-01-04 18:20:27 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Nix-based app VMs";
|
|
|
|
homepage = "https://code.dumpstack.io/tools/${pname}";
|
|
|
|
maintainers = [ lib.maintainers.dump_stack ];
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|