nixpkgs/pkgs/servers/haste-server/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
858 B
Nix
Raw Normal View History

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