git.iko.soy/typeable/nixpkgs
on master help sign in
quickserve: init at 2018 (#48083)
commit0f2869a8063daff487fb0d69ea53a7a568c7afb1 authorLassulus <github@lassul.us> dateWed 10 Oct 2018, 01:24 (8 years ago) parentfc84778
2 files changed+37
pkgs/tools/networking/quickserve/default.nix+35 pkgs/top-level/all-packages.nix+2
pkgs/tools/networking/quickserve/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ stdenv, makeWrapper, fetchzip, python3, python3Packages, writeScript }:
2+let
3+ threaded_servers = python3Packages.buildPythonPackage {
4+ name = "threaded_servers";
5+ src = fetchzip {
6+ url = https://xyne.archlinux.ca/projects/python3-threaded_servers/src/python3-threaded_servers-2018.6.tar.xz;
7+ sha256 = "1irliz90a1dk4lyl7mrfq8qnnrfad9czvbcw1spc13zyai66iyhf";
8+ };
9+
10+ # stuff we don't care about pacserve
11+ doCheck = false;
12+ };
13+ wrappedPython = python3.withPackages (_: [ threaded_servers ]);
14+in stdenv.mkDerivation {
15+ name = "quickserve";
16+ version = "2018";
17+
18+ unpackPhase = ":";
19+ nativeBuildInputs = [ makeWrapper ];
20+
21+ installPhase = ''
22+ runHook preInstall
23+ mkdir -p $out/bin
24+ makeWrapper ${wrappedPython}/bin/python $out/bin/quickserve \
25+ --add-flags -mThreadedServers.PeeredQuickserve
26+ runHook postInstall
27+ '';
28+
29+ meta = with stdenv.lib; {
30+ description = "A simple HTTP server for quickly sharing files.";
31+ homepage = https://xyne.archlinux.ca/projects/quickserve/;
32+ license = licenses.gpl2;
33+ maintainers = with maintainers; [ lassulus ];
34+ };
35+}
pkgs/top-level/all-packages.nix+2
@@ -4925,6 +4925,8 @@ with pkgs;
49254925
49264926 qtikz = libsForQt5.callPackage ../applications/graphics/ktikz { };
49274927
4928+ quickserve = callPackage ../tools/networking/quickserve { };
4929+
49284930 quicktun = callPackage ../tools/networking/quicktun { };
49294931
49304932 quilt = callPackage ../development/tools/quilt { };