mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2025-05-01 09:34:23 +00:00
Add Nix package
This commit is contained in:
parent
40ef3fe50e
commit
7d6d524b67
3 changed files with 114 additions and 0 deletions
37
default.nix
Normal file
37
default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, buildGoPackage
|
||||
, fetchgit
|
||||
, nix
|
||||
, virt-viewer
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "appvm";
|
||||
version = "0.3";
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
goPackagePath = "code.dumpstack.io/tools/${pname}";
|
||||
|
||||
src = fetchgit {
|
||||
rev = "refs/tags/v${version}";
|
||||
url = "https://code.dumpstack.io/tools/${pname}.git";
|
||||
sha256 = "1ji4g868xrv6kx6brdrqfv0ca12vjw0mcndffnnwpczh4yv81sd3";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $bin/bin/appvm \
|
||||
--prefix PATH : "${lib.makeBinPath [ nix virt-viewer ]}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Nix-based app VMs";
|
||||
homepage = "https://code.dumpstack.io/tools/${pname}";
|
||||
maintainers = [ lib.maintainers.dump_stack ];
|
||||
license = lib.licenses.gpl3;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue