blob: 35176db8b24156b31a2c63e73e9040253b18e104 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ stdenv, lib, fetchFromGitHub, wrapPython, fetchpatch }:
stdenv.mkDerivation {
pname = "droopy";
version = "20160830";
src = fetchFromGitHub {
owner = "stackp";
repo = "Droopy";
rev = "7a9c7bc46c4ff8b743755be86a9b29bd1a8ba1d9";
sha256 = "03i1arwyj9qpfyyvccl21lbpz3rnnp1hsadvc0b23nh1z2ng9sff";
};
patches = [
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/stackp/Droopy/pull/30.patch";
sha256 = "Y6jBraKvVQAiScbvLwezSKeWY3vaAbhaNXEGNaItigQ=";
})
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/stackp/Droopy/pull/31.patch";
sha256 = "1ig054rxn5r0ph4w4fhmrxlh158c97iqqc7dbnc819adn9nw96l5";
})
];
nativeBuildInputs = [ wrapPython ];
installPhase = ''
install -vD droopy $out/bin/droopy
install -vD -m 644 man/droopy.1 $out/share/man/man1/droopy.1
wrapPythonPrograms
'';
meta = with lib; {
description = "Mini Web server that let others upload files to your computer";
homepage = "http://stackp.online.fr/droopy";
license = licenses.bsd3;
maintainers = [ maintainers.Profpatsch ];
mainProgram = "droopy";
};
}
|