mirror of
https://github.com/jb55/nostril.git
synced 2024-11-21 16:29:06 -05:00
nix build
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
60a4613cc1
commit
251031f5a5
4
Makefile
4
Makefile
|
@ -12,6 +12,10 @@ all: nostril
|
||||||
nostril: $(HEADERS) $(OBJS)
|
nostril: $(HEADERS) $(OBJS)
|
||||||
$(CC) $(CFLAGS) $(OBJS) -lsecp256k1 -o $@
|
$(CC) $(CFLAGS) $(OBJS) -lsecp256k1 -o $@
|
||||||
|
|
||||||
|
install: nostril
|
||||||
|
mkdir -p $(PREFIX)/bin
|
||||||
|
cp nostril $(PREFIX)/bin
|
||||||
|
|
||||||
config.h: configurator
|
config.h: configurator
|
||||||
./configurator > $@
|
./configurator > $@
|
||||||
|
|
||||||
|
|
13
default.nix
Normal file
13
default.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
|
with pkgs;
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "nostril";
|
||||||
|
version = "0.1";
|
||||||
|
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
buildInputs = [ secp256k1 ];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user