viscal

cairo/gtk vi-like timeblocking calendar
git clone git://jb55.com/viscal
Log | Files | Refs | README | LICENSE

commit 4f2b232aeecbde110e56c2323f00327678f3d599
parent 5022ecf4b5c1fb614d13f7bc3a81a6cf3115a67e
Author: William Casarin <jb55@jb55.com>
Date:   Thu,  5 Nov 2020 11:44:03 -0800

nix: make buildable

Diffstat:
MMakefile | 5+++++
Mdefault.nix | 7++++++-
2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -3,6 +3,7 @@ BIN ?= viscal all: $(BIN) +PREFIX ?= /usr DEPS=libical gtk+-3.0 CFLAGS=-Wall \ @@ -15,6 +16,10 @@ CFLAGS=-Wall \ -lm \ `pkg-config --cflags --libs $(DEPS)` +install: $(BIN) + mkdir -p $(PREFIX)/bin + cp $(BIN) $(PREFIX)/bin + tags: TAGS $(BIN): viscal.c Makefile diff --git a/default.nix b/default.nix @@ -1,7 +1,12 @@ { pkgs ? import <nixpkgs> {} }: with pkgs; stdenv.mkDerivation { - name = "viscal"; + pname = "viscal"; + version = "0.0.1"; + + makeFlags = "PREFIX=$(out)"; + + src = ./.; nativeBuildInputs = [ clang pkgconfig ]; buildInputs = [ gtk3 cairo glib libical ]; }