~jb55/viscal

4f2b232aeecbde110e56c2323f00327678f3d599 — William Casarin 1 year, 23 days ago 5022ecf
nix: make buildable
2 files changed, 11 insertions(+), 1 deletions(-)

M Makefile
M default.nix
M Makefile => Makefile +5 -0
@@ 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

M default.nix => default.nix +6 -1
@@ 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 ];
}