2024-05-21 18:58:55 +03:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
nixosTests,
|
|
|
|
}:
|
2024-05-21 19:27:45 +03:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-05-21 18:58:55 +03:00
|
|
|
pname = "filesender";
|
2025-08-05 07:11:44 +00:00
|
|
|
version = "2.57";
|
2024-05-21 18:58:55 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "filesender";
|
|
|
|
repo = "filesender";
|
2024-12-06 12:47:10 +01:00
|
|
|
tag = "filesender-${finalAttrs.version}";
|
2025-08-05 07:11:44 +00:00
|
|
|
hash = "sha256-I/9Y64jWm7QdQ1yhjCHkLfkKrzV6y0Rp+wkZbDP86fw=";
|
2024-05-21 18:58:55 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# /nix/store is read-only, but filesender searches config and logs inside of installation directory.
|
|
|
|
# This patch changes search directories to FILESENDER_CONFIG_DIR and FILESENDER_LOG_DIR environment variables.
|
|
|
|
./separate_mutable_paths.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
2024-05-21 19:27:45 +03:00
|
|
|
runHook preInstall
|
|
|
|
|
2024-05-21 18:58:55 +03:00
|
|
|
mkdir -p $out/
|
|
|
|
cp -R . $out/
|
2024-05-21 19:27:45 +03:00
|
|
|
|
|
|
|
runHook postInstall
|
2024-05-21 18:58:55 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) filesender;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Web application for sending large files to other users";
|
|
|
|
homepage = "https://filesender.org/";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ nhnn ];
|
|
|
|
};
|
2024-05-21 19:27:45 +03:00
|
|
|
})
|