Build appvm from ../default.nix

This commit is contained in:
Mikhail Klementev 2020-01-22 01:17:44 +00:00
parent 7b76368699
commit 680aff06f7
No known key found for this signature in database
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>