mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
f67cebe1cf
Includes a fix for miniupnpc 2.2.8.
56 lines
957 B
Nix
56 lines
957 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
libevent,
|
|
file,
|
|
qrencode,
|
|
openssl,
|
|
miniupnpc,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "pshs";
|
|
version = "0.4.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "projg2";
|
|
repo = "pshs";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-sfhhxeQa0rmBerfAemuHou0N001Zq5Hh7s7utxLQHOI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libevent
|
|
file
|
|
qrencode
|
|
openssl
|
|
miniupnpc
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
__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.gpl2Plus;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|