1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

Adding filegive, my file sending program

This commit is contained in:
Lluís Batlle i Rossell 2013-05-02 11:32:23 +04:00
parent faddfc97b0
commit bd55358159
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ stdenv, fetchurl, go }:
assert stdenv.isLinux && (stdenv.isi686 || stdenv.isx86_64 || stdenv.isArm);
stdenv.mkDerivation rec {
name = "filegive-0.3";
src = fetchurl {
url = "http://viric.name/cgi-bin/filegive/tarball/filegive-0.3.tar.gz?uuid=v0.3";
name = "${name}.tar.gz";
sha256 = "1xiz47q6f579nb36p973bb3wjszn515v0sjh76pif1cihijdsb5y";
};
buildInputs = [ go ];
buildPhase = ''
${stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "export GOARM=5"}
go build -o filegive
'';
installPhase = ''
ensureDir $out/bin
cp filegive $out/bin
'';
meta = {
homepage = http://viric.name/cgi-bin/filegive;
license = "BSD";
};
}

View file

@ -767,6 +767,8 @@ let
file = callPackage ../tools/misc/file { };
filegive = callPackage ../tools/networking/filegive { };
fileschanged = callPackage ../tools/misc/fileschanged { };
findutils = callPackage ../tools/misc/findutils { };