mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
44 lines
1002 B
Nix
44 lines
1002 B
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
lib,
|
|
nixosTests,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "filesender";
|
|
version = "2.49";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "filesender";
|
|
repo = "filesender";
|
|
rev = "filesender-${finalAttrs.version}";
|
|
hash = "sha256-GNhborbwV9G2x7pLDyxGVCtTf4AIaMYQGAKNJPzedzo=";
|
|
};
|
|
|
|
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 = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/
|
|
cp -R . $out/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
})
|