mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-27 02:21:32 +00:00
Build appvm from ../default.nix
This commit is contained in:
parent
7b76368699
commit
680aff06f7
|
@ -1,18 +1,7 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
appvm = (pkgs.buildGoPackage {
|
appvm = (import ../default.nix);
|
||||||
# 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 ]}"
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
||||||
|
|
Loading…
Reference in a new issue