Hello!
Redis is a nice key/value store that I recently came to need a new
version of. I gave a shot at packaging it for nix. The attached
expression succeeds at building it, but it places an empty directory in
the nix store. Presumably my overriding of the PREFIX in the makefile is
unsuccessful, but I'm not sure how to see where it's going wrong.
Any ideas?
-Phil
Index: pkgs/servers/nosql/redis/default.nix
===================================================================
--- pkgs/servers/nosql/redis/default.nix (revision 0)
+++ pkgs/servers/nosql/redis/default.nix (working copy)
@@ -0,0 +1,22 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+ pname = "redis";
+ version = "2.4.7";
+ name = "${pname}-${version}";
+
+ src = fetchurl {
+ url = "http://redis.googlecode.com/files/redis-2.4.7.tar.gz";
+ sha256 = "f91956377b7ff23cc23e0c8758e0b873032f36545c61d88436ebb741bf4dd5e1";
+ };
+
+ makeFlags="PREFIX=$out";
+
+ meta = {
+ homepage = http://redis.io;
+ description = "An open source, advanced key-value store";
+ license = "BSD";
+
+ platforms = stdenv.lib.platforms.unix;
+ };
+}
Index: pkgs/top-level/all-packages.nix
===================================================================
--- pkgs/top-level/all-packages.nix (revision 31990)
+++ pkgs/top-level/all-packages.nix (working copy)
@@ -5184,6 +5184,8 @@
radius = callPackage ../servers/radius { };
+ redis = callPackage ../servers/nosql/redis { };
+
redstore = callPackage ../servers/http/redstore { };
samba = callPackage ../servers/samba { };
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev