2022-03-02 17:59:46 +01:00
|
|
|
{ lib
|
|
|
|
, nixosTests
|
2023-09-13 03:39:57 +02:00
|
|
|
, buildNpmPackage
|
2022-03-02 17:59:46 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2023-09-13 03:39:57 +02:00
|
|
|
buildNpmPackage rec {
|
2022-03-02 17:59:46 +01:00
|
|
|
pname = "haste-server";
|
2023-09-13 03:39:57 +02:00
|
|
|
version = "unstable-2023-03-06";
|
2022-03-02 17:59:46 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "toptal";
|
|
|
|
repo = "haste-server";
|
2023-09-13 03:39:57 +02:00
|
|
|
rev = "b52b394bad909ddf151073987671e843540d91d6";
|
2023-03-08 19:26:56 +01:00
|
|
|
hash = "sha256-AVoz5MY5gNxQrHtDMPbQ85IjmHii1v6C2OXpEQj9zC8=";
|
2022-03-02 17:59:46 +01:00
|
|
|
};
|
|
|
|
|
2023-09-13 03:39:57 +02:00
|
|
|
npmDepsHash = "sha256-FEuqKbblAts0WTnGI9H9bRBOwPvkahltra1zl3sMPJs=";
|
2022-03-02 17:59:46 +01:00
|
|
|
|
2023-09-13 03:39:57 +02:00
|
|
|
dontNpmBuild = true;
|
2022-03-02 17:59:46 +01:00
|
|
|
|
2023-09-13 03:39:57 +02:00
|
|
|
postInstall = ''
|
|
|
|
install -Dt "$out/share/haste-server" about.md
|
|
|
|
'';
|
2022-03-02 17:59:46 +01:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
inherit (nixosTests) haste-server;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-09-13 03:39:57 +02:00
|
|
|
description = "Open source pastebin written in Node.js";
|
|
|
|
homepage = "https://github.com/toptal/haste-server";
|
2022-03-02 17:59:46 +01:00
|
|
|
license = licenses.mit;
|
2023-09-13 03:39:57 +02:00
|
|
|
mainProgram = "haste-server";
|
2022-03-02 17:59:46 +01:00
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
|
|
|
};
|
|
|
|
}
|