Created
September 17, 2023 20:32
-
-
Save jeremyd/41a2b065a492c783fc5878a84281f7e2 to your computer and use it in GitHub Desktop.
strfry.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
pkgs.stdenv.mkDerivation { | |
name = "strfry"; | |
src = pkgs.fetchgit { | |
url = "https://github.com/hoytech/strfry.git"; | |
fetchSubmodules = true; | |
rev = "0.9.4"; | |
deepClone = false; | |
hash = "sha256-5dAavWbuNzASH/bRaB1qC8JunO9UCu7IxaUI2i0BNuI="; | |
}; | |
buildInputs = with pkgs; [ perl perlPackages.YAML perlPackages.TemplateToolkit perlPackages.RegexpCommon perlPackages.RegexpGrammars lmdb zstd secp256k1 flatbuffers zlib openssl libuv ]; | |
buildPhase = '' | |
make -j4 | |
''; | |
installPhase = '' | |
install -m755 -D strfry $out/bin/strfry | |
''; | |
meta = with pkgs.lib; { | |
description = "strfry is a relay server for the nostr protocol"; | |
homepage = "https://github.com/hoytech/strfry"; | |
changelog = "https://github.com/hoytech/strfry/tag/${version}"; | |
maintainers = with maintainers; [ jeremyd ]; | |
license = licenses.gpl3; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment