nostril

A C cli tool for creating nostr events
git clone git://jb55.com/nostril
Log | Files | Refs | README

commit 251031f5a5d098d02c5e74556942d3dd706b5ce4
parent 60a4613cc1bf0bb502b2105746311bc393829ad5
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 20 Apr 2022 17:15:25 -0700

nix build

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
MMakefile | 4++++
Adefault.nix | 13+++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -12,6 +12,10 @@ all: nostril nostril: $(HEADERS) $(OBJS) $(CC) $(CFLAGS) $(OBJS) -lsecp256k1 -o $@ +install: nostril + mkdir -p $(PREFIX)/bin + cp nostril $(PREFIX)/bin + config.h: configurator ./configurator > $@ diff --git a/default.nix b/default.nix @@ -0,0 +1,13 @@ +{ pkgs ? import <nixpkgs> {} }: + +with pkgs; +stdenv.mkDerivation { + pname = "nostril"; + version = "0.1"; + + src = ./.; + + makeFlags = [ "PREFIX=$(out)" ]; + + buildInputs = [ secp256k1 ]; +}