pshs: modernize
This commit is contained in:
parent
f5b70e5d81
commit
5bc8c6988f
@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user