2020-11-30 08:33:03 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, wrapPython, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "droopy";
|
|
|
|
version = "20160830";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stackp";
|
|
|
|
repo = "Droopy";
|
|
|
|
rev = "7a9c7bc46c4ff8b743755be86a9b29bd1a8ba1d9";
|
|
|
|
sha256 = "03i1arwyj9qpfyyvccl21lbpz3rnnp1hsadvc0b23nh1z2ng9sff";
|
|
|
|
};
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/stackp/Droopy/pull/30.patch";
|
|
|
|
sha256 = "Y6jBraKvVQAiScbvLwezSKeWY3vaAbhaNXEGNaItigQ=";
|
|
|
|
})
|
2021-12-06 16:07:01 +00:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/stackp/Droopy/pull/31.patch";
|
|
|
|
sha256 = "1ig054rxn5r0ph4w4fhmrxlh158c97iqqc7dbnc819adn9nw96l5";
|
|
|
|
})
|
2020-11-30 08:33:03 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +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
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mini Web server that let others upload files to your computer";
|
|
|
|
homepage = "http://stackp.online.fr/droopy";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.Profpatsch ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "droopy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|