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
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
, lib
, buildGoPackage
, fetchgit
, nix
, virt-viewer
, makeWrapper
}:
# { stdenv
# , lib
# , buildGoPackage
# , fetchgit
# , nix
# , virt-viewer
# , makeWrapper
# }:
let
pkgs = import <nixpkgs> {};
in with pkgs;
buildGoPackage rec {
pname = "appvm";