Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
fileshare: init at 0.2.4
Browse files Browse the repository at this point in the history
Fileshare is a simple tool for sharing the contents of a directory via a
webserver and optionally allowing uploads.
  • Loading branch information
esclear authored and Matthieu Coudron committed Oct 6, 2019
1 parent 2a25b5c commit a4ae914
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/servers/fileshare/default.nix
@@ -0,0 +1,35 @@
{ stdenv, lib, fetchgit, pkgconfig, git, libmicrohttpd }:

stdenv.mkDerivation rec {
pname = "fileshare";
version = "0.2.4";

src = fetchgit {
url = https://git.tkolb.de/Public/fileshare.git;
rev = "v${version}";
sha256 = "03jrhk4vj6bc2w3lsrfjpfflb4laihysgs5i4cv097nr5cz32hyk";
};

postPatch = ''
sed -i 's,$(shell git rev-parse --short HEAD),/${version},g' Makefile
'';

nativeBuildInputs = [ pkgconfig git ];
buildInputs = [ libmicrohttpd ];

makeFlags = "BUILD=release";

installPhase = ''
mkdir -p $out/bin
cp bin/release/fileshare $out/bin
'';

meta = with stdenv.lib; {
description = "A small HTTP Server for quickly sharing files over the network";
longDescription = "Fileshare is a simple tool for sharing the contents of a directory via a webserver and optionally allowing uploads.";
homepage = https://git.tkolb.de/Public/fileshare;
license = licenses.mit;
maintainers = [ maintainers.esclear ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -1629,6 +1629,8 @@ in
bison = bison2;
};

fileshare = callPackage ../servers/fileshare {};

fileshelter = callPackage ../servers/web-apps/fileshelter { };

firecracker = callPackage ../applications/virtualization/firecracker { };
Expand Down

0 comments on commit a4ae914

Please sign in to comment.