filegive: update to 0.5.1
nat-pmp, fixed upnp bugs, ...
This commit is contained in:
parent
5603d11da8
commit
5465a118e1
@ -1,20 +1,39 @@
|
|||||||
{ stdenv, fetchurl, go }:
|
{ stdenv, fetchurl, fetchgit, go }:
|
||||||
|
|
||||||
assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64 || stdenv.isArm);
|
assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64 || stdenv.isArm);
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
# Code with BSD license
|
||||||
|
srcNatPMP = fetchgit {
|
||||||
|
url = "https://code.google.com/p/go-nat-pmp/";
|
||||||
|
rev = "e04deda90d56";
|
||||||
|
sha256 = "1swwfyzaj3l40yh9np3x4fcracgs79nwryc85sxbdakx8wwxs2xb";
|
||||||
|
};
|
||||||
|
|
||||||
|
version = "0.5.1";
|
||||||
|
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "filegive-0.3.1";
|
name = "filegive-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://viric.name/cgi-bin/filegive/tarball/filegive-0.3.1.tar.gz?uuid=v0.3.1";
|
url = "http://viric.name/cgi-bin/filegive/tarball/${name}.tar.gz?uuid=v${version}";
|
||||||
name = "${name}.tar.gz";
|
name = "${name}.tar.gz";
|
||||||
sha256 = "14hsy7bkmhq03f2yf619kz8p11v8ndd59sdibck556z8dld7b6ya";
|
sha256 = "0b8x2g5c9j5v36s62yzdcnj4b76ahiz1brkilm3mv1qkck2y6wwb";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ go ];
|
buildInputs = [ go ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
${stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "export GOARM=5"}
|
${stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "export GOARM=5"}
|
||||||
|
|
||||||
|
mkdir $TMPDIR/go
|
||||||
|
export GOPATH=$TMPDIR/go
|
||||||
|
|
||||||
|
GONATPMP=$GOPATH/src/code.google.com/p/go-nat-pmp
|
||||||
|
mkdir -p $GONATPMP
|
||||||
|
cp -R ${srcNatPMP}/* $GONATPMP/
|
||||||
go build -o filegive
|
go build -o filegive
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user