2020-11-21 14:10:50 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, wrapPython, fetchpatch }:
|
2017-02-11 22:06:17 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "droopy";
|
2017-02-11 22:06:17 +00:00
|
|
|
version = "20160830";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stackp";
|
|
|
|
repo = "Droopy";
|
|
|
|
rev = "7a9c7bc46c4ff8b743755be86a9b29bd1a8ba1d9";
|
|
|
|
sha256 = "03i1arwyj9qpfyyvccl21lbpz3rnnp1hsadvc0b23nh1z2ng9sff";
|
|
|
|
};
|
|
|
|
|
2020-11-21 14:10:50 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/stackp/Droopy/pull/30.patch";
|
|
|
|
sha256 = "Y6jBraKvVQAiScbvLwezSKeWY3vaAbhaNXEGNaItigQ=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-02-11 22:06:17 +00:00
|
|
|
nativeBuildInputs = [ wrapPython ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -vD droopy $out/bin/droopy
|
|
|
|
install -vD -m 644 man/droopy.1 $out/share/man/man1/droopy.1
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Mini Web server that let others upload files to your computer";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://stackp.online.fr/droopy";
|
2017-02-11 22:06:17 +00:00
|
|
|
license = licenses.bsd3;
|
2018-02-12 06:18:12 +00:00
|
|
|
maintainers = [ maintainers.Profpatsch ];
|
2017-02-11 22:06:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|