Support remove run with nix run

This commit is contained in:
Mikhail Klementev 2020-01-08 20:52:29 +00:00
parent bd63fcd48f
commit fca2f89046
No known key found for this signature in database
GPG Key ID: BE44DA8C062D87DC
2 changed files with 12 additions and 9 deletions

View File

@ -2,4 +2,4 @@ go:
go build go build
nix: nix:
nix-build -E '((import <nixpkgs> {}).callPackage (import ./default.nix) { })' --option sandbox true --no-out-link nix-build #-E '((import <nixpkgs> {}).callPackage (import ./default.nix) { })' --option sandbox true --no-out-link

View File

@ -1,11 +1,14 @@
{ stdenv # { stdenv
, lib # , lib
, buildGoPackage # , buildGoPackage
, fetchgit # , fetchgit
, nix # , nix
, virt-viewer # , virt-viewer
, makeWrapper # , makeWrapper
}: # }:
let
pkgs = import <nixpkgs> {};
in with pkgs;
buildGoPackage rec { buildGoPackage rec {
pname = "appvm"; pname = "appvm";