diff --git a/pkgs/by-name/ps/pshs/package.nix b/pkgs/by-name/ps/pshs/package.nix index 35a7cf78cfc9..72423cc00ca4 100644 --- a/pkgs/by-name/ps/pshs/package.nix +++ b/pkgs/by-name/ps/pshs/package.nix @@ -8,16 +8,17 @@ file, qrencode, miniupnpc, + nix-update-script, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "pshs"; version = "0.3.4"; src = fetchFromGitHub { owner = "mgorny"; repo = "pshs"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "1j8j4r0vsmp6226q6jdgf9bzhx3qk7vdliwaw7f8kcsrkndkg6p4"; }; @@ -25,6 +26,7 @@ stdenv.mkDerivation rec { autoreconfHook pkg-config ]; + buildInputs = [ libevent file @@ -32,14 +34,21 @@ stdenv.mkDerivation rec { miniupnpc ]; + strictDeps = true; + # SSL requires libevent at 2.1 with ssl support configureFlags = [ "--disable-ssl" ]; + __structuredAttrs = true; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Pretty small HTTP server - a command-line tool to share files"; mainProgram = "pshs"; homepage = "https://github.com/mgorny/pshs"; + sourceProvenance = [ lib.sourceTypes.fromSource ]; license = lib.licenses.bsd3; platforms = lib.platforms.linux; }; -} +})