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:
parent
faddfc97b0
commit
bd55358159
30
pkgs/tools/networking/filegive/default.nix
Normal file
30
pkgs/tools/networking/filegive/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue