Build appvm from ../default.nix

This commit is contained in:
dump_stack() 2020-01-22 01:17:44 +00:00
parent 7b76368699
commit 680aff06f7
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -1,18 +1,7 @@
{ config, pkgs, lib, ... }:
let
appvm = (pkgs.buildGoPackage {
# TODO ../default.nix
name = "appvm";
goPackagePath = "code.dumpstack.io/tools/appvm";
goDeps = ../deps.nix;
src = ../.;
buildInputs = [ pkgs.makeWrapper ];
postFixup = ''
wrapProgram $bin/bin/appvm \
--prefix PATH : "${lib.makeBinPath [ pkgs.nix pkgs.virt-viewer ]}"
'';
});
appvm = (import ../default.nix);
in {
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>