From 1d7180131cbd90c1fd8ca120bfafd96fdcce00e2 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 20 Feb 2015 13:00:21 +0100 Subject: make install: initial commit --- Makefile | 11 +++++++++++ default.nix | 14 -------------- install.nix | 5 +++++ 3 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 Makefile delete mode 100644 default.nix create mode 100644 install.nix diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e07ff6f --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ + +.PHONY: all +all: + +.PHONY: clean +clean: + @find -maxdepth 1 -type f \( -name \*.o -o -name \*.hi \) -exec rm -v \{\} \; + +.PHONY: install +install: + nix-env --arg target "$$(cabal2nix .)" -f install.nix -i diff --git a/default.nix b/default.nix deleted file mode 100644 index 3953722..0000000 --- a/default.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ pkgs ? import {} -, src ? ./. -, name ? "much" -}: -let - inherit (pkgs.haskellngPackages) buildLocalCabalWithArgs callPackage; -in -buildLocalCabalWithArgs { - inherit src name; - args = { - email-header = callPackage ./nix/email-header.nix {}; - mime-mail = callPackage ./nix/mime-mail.nix {}; - }; -} diff --git a/install.nix b/install.nix new file mode 100644 index 0000000..1af984c --- /dev/null +++ b/install.nix @@ -0,0 +1,5 @@ +{ nixpkgs ? import {} +, target +}: + +nixpkgs.pkgs.haskellngPackages.callPackage target {} -- cgit v1.2.3