appvm/default.nix

38 lines
1.0 KiB
Nix
Raw Normal View History

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: {
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
2020-02-02 02:13:57 +00:00
./patches/0004-Use-title-application-name-as-subtitle.patch
];
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
2020-06-18 15:39:11 +00:00
buildGoModule rec {
2020-01-04 18:20:27 +00:00
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
2020-06-18 15:39:11 +00:00
vendorSha256 = "1aimli23jdqv8rifsn22qfbj2c0nc0s5czsd8qprhnr4hcsbdnkf";
modSha256 = "${vendorSha256}"; # backward compatibility
2020-01-04 18:20:27 +00:00
postFixup = ''
2020-06-18 15:39:11 +00:00
wrapProgram $out/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}";
2020-07-13 22:58:25 +00:00
maintainers = [ lib.maintainers.dump_stack lib.maintainers.cab404 ];
2020-01-04 18:20:27 +00:00
license = lib.licenses.gpl3;
};
}