mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
Diff: https://github.com/PrivateBin/PrivateBin/compare/2.0.5...2.0.6 Changelog: https://github.com/PrivateBin/PrivateBin/releases/tag/2.0.6
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "privatebin";
|
|
version = "2.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PrivateBin";
|
|
repo = "PrivateBin";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-RSgTbFUbpGUSL7rg/aWkkzDRHt/Iq9w5xDpjEsZLYa8=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
cp -R $src/* $out
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
tests = nixosTests.privatebin;
|
|
updateScript = ./update.sh;
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/PrivateBin/PrivateBin/releases/tag/${finalAttrs.version}";
|
|
description = "Minimalist, open source online pastebin where the server has zero knowledge of pasted data";
|
|
homepage = "https://privatebin.info";
|
|
license = with lib.licenses; [
|
|
# privatebin
|
|
zlib
|
|
# dependencies, see https://github.com/PrivateBin/PrivateBin/blob/master/LICENSE.md
|
|
gpl2Only
|
|
bsd3
|
|
mit
|
|
asl20
|
|
cc-by-40
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
savyajha
|
|
defelo
|
|
];
|
|
};
|
|
})
|