2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, nixosTests
|
2023-10-09 19:29:22 +00:00
|
|
|
, buildNpmPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
buildNpmPackage rec {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "haste-server";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "unstable-2023-03-06";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "toptal";
|
|
|
|
repo = "haste-server";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "b52b394bad909ddf151073987671e843540d91d6";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-AVoz5MY5gNxQrHtDMPbQ85IjmHii1v6C2OXpEQj9zC8=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
npmDepsHash = "sha256-FEuqKbblAts0WTnGI9H9bRBOwPvkahltra1zl3sMPJs=";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
dontNpmBuild = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -Dt "$out/share/haste-server" about.md
|
|
|
|
'';
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
inherit (nixosTests) haste-server;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-09 19:29:22 +00:00
|
|
|
description = "Open source pastebin written in Node.js";
|
|
|
|
homepage = "https://github.com/toptal/haste-server";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.mit;
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "haste-server";
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
|
|
|
};
|
|
|
|
}
|