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