nixpkgs/pkgs/by-name/ps/pshs/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
957 B
Nix
Raw Normal View History

2024-07-11 15:47:28 +00:00
{
lib,
stdenv,
fetchFromGitHub,
meson,
ninja,
2024-07-11 15:47:28 +00:00
pkg-config,
libevent,
file,
qrencode,
openssl,
2024-07-11 15:47:28 +00:00
miniupnpc,
2024-07-11 15:51:29 +00:00
nix-update-script,
2024-07-11 15:47:28 +00:00
}:
2024-07-11 15:51:29 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "pshs";
version = "0.4.3";
src = fetchFromGitHub {
owner = "projg2";
repo = "pshs";
2024-07-11 15:51:29 +00:00
rev = "v${finalAttrs.version}";
hash = "sha256-sfhhxeQa0rmBerfAemuHou0N001Zq5Hh7s7utxLQHOI=";
};
2024-07-11 15:47:28 +00:00
nativeBuildInputs = [
meson
ninja
2024-07-11 15:47:28 +00:00
pkg-config
];
2024-07-11 15:51:29 +00:00
2024-07-11 15:47:28 +00:00
buildInputs = [
libevent
file
qrencode
openssl
2024-07-11 15:47:28 +00:00
miniupnpc
];
2024-07-11 15:51:29 +00:00
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";
2024-07-11 15:51:29 +00:00
sourceProvenance = [ lib.sourceTypes.fromSource ];
license = lib.licenses.gpl2Plus;
2024-07-11 15:51:29 +00:00
platforms = lib.platforms.unix;
};
2024-07-11 15:51:29 +00:00
})