go-pup: extracted from goPackages

This commit is contained in:
Kamil Chmielewski 2016-06-03 14:13:10 +02:00
parent ce81a8a65d
commit 977f23ca37
3 changed files with 19 additions and 16 deletions

View file

@ -0,0 +1,18 @@
# This file was generated by go2nix.
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with goPackages;
buildGoPackage rec {
name = "pup-${version}";
version = "20160425-${stdenv.lib.strings.substring 0 7 rev}";
rev = "e76307d03d4d2e0f01fb7ab51dee09f2671c3db6";
goPackagePath = "github.com/ericchiang/pup";
src = fetchgit {
inherit rev;
url = "https://github.com/ericchiang/pup";
sha256 = "15lwas4cjchlwhrwnd5l4gxcwqdfgazdyh466hava5qzxacqxrm5";
};
}

View file

@ -1760,7 +1760,7 @@ in
go-mtpfs = (callPackage ../tools/filesystems/go-mtpfs { }).bin;
go-pup = goPackages.pup.bin // { outputs = [ "bin" ]; };
go-pup = (callPackage ../development/tools/pup { }).bin;
go-sct = goPackages.go-sct.bin // { outputs = [ "bin" ]; };

View file

@ -3987,21 +3987,6 @@ let
buildInputs = [ ansicolor go-colorable ];
};
pup = buildFromGitHub {
rev = "9693b292601dd24dab3c04bc628f9ae3fa72f831";
owner = "EricChiang";
repo = "pup";
sha256 = "04j3fy1vk6xap8ad7k3c05h9b5mg2n1vy9vcyg9rs02cb13d3sy0";
propagatedBuildInputs = [ net ];
buildInputs = [ go-colorable color ];
postPatch = ''
grep -sr github.com/ericchiang/pup/Godeps/_workspace/src/ |
cut -f 1 -d : |
sort -u |
xargs -d '\n' sed -i -e s,github.com/ericchiang/pup/Godeps/_workspace/src/,,g
'';
};
textsecure = buildFromGitHub rec {
rev = "505e129c42fc4c5cb2d105520cef7c04fa3a6b64";
owner = "janimo";