1{ lib, stdenv, fetchFromGitHub, python3 }:
2
3stdenv.mkDerivation rec {
4 pname = "wolfebin";
5 version = "5.6";
6
7 src = fetchFromGitHub {
8 owner = "thejoshwolfe";
9 repo = "wolfebin";
10 rev = version;
11 sha256 = "sha256-tsI71/UdLaGZ3O2lNTd1c8S5OS2imquLovh0n0ez8Ts=";
12 };
13
14 buildInputs = [ python3 ];
15
16 installPhase = ''
17 install -m 755 -d $out/bin
18 install -m 755 wolfebin $out/bin
19 install -m 755 wolfebin_server.py $out/bin/wolfebin_server
20 '';
21
22 meta = with lib; {
23 homepage = "https://github.com/thejoshwolfe/wolfebin";
24 description = "Quick and easy file sharing";
25 license = licenses.mit;
26 maintainers = with maintainers; [ andrewrk ];
27 platforms = platforms.all;
28 };
29}