up: repackage with buildGoModule

Go modules[1] provide a set of sources and corresponding checksums.
These sources can be resolved automatically with Nix, so no go2nix is
required anymore.

[1] https://blog.golang.org/using-go-modules
This commit is contained in:
Maximilian Bosch
2019-05-12 11:24:00 +02:00
parent 6ec6cd0f20
commit 4c6754c631
2 changed files with 3 additions and 70 deletions
+3 -4
View File
@@ -1,6 +1,6 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGoPackage rec {
buildGoModule rec {
name = "up-${version}";
version = "0.3.2";
@@ -11,8 +11,7 @@ buildGoPackage rec {
sha256 = "1psixyymk98z52yy92lwb75yfins45dw6rif9cxwd7yiascwg2if";
};
goPackagePath = "github.com/akavel/up";
goDeps = ./deps.nix;
modSha256 = "0nfs190rzabphhhyacypz3ic5c4ajlqpx9jiiincs0vxfkmfwnjd";
meta = with lib; {
description = "Ultimate Plumber is a tool for writing Linux pipes with instant live preview";