summary refs log tree commit diff
path: root/pkgs/development/lisp-modules/quicklisp-to-nix-output/postmodern.nix
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2017-06-21 22:15:07 +0200
committerMichael Raskin <7c6f434c@mail.ru>2017-06-21 22:17:48 +0200
commitbc47794ab580a28d9c995e4b0f01ef4bee77af28 (patch)
tree0da1b1d874991f2a70d6777d3b4763616fc839e7 /pkgs/development/lisp-modules/quicklisp-to-nix-output/postmodern.nix
parente89e96a7551e4213f50e0f44467546a26d42ea5f (diff)
downloadnixpkgs-bc47794ab580a28d9c995e4b0f01ef4bee77af28.tar
nixpkgs-bc47794ab580a28d9c995e4b0f01ef4bee77af28.tar.gz
nixpkgs-bc47794ab580a28d9c995e4b0f01ef4bee77af28.tar.bz2
nixpkgs-bc47794ab580a28d9c995e4b0f01ef4bee77af28.tar.lz
nixpkgs-bc47794ab580a28d9c995e4b0f01ef4bee77af28.tar.xz
nixpkgs-bc47794ab580a28d9c995e4b0f01ef4bee77af28.tar.zst
nixpkgs-bc47794ab580a28d9c995e4b0f01ef4bee77af28.zip
quicklispPackages: update
Escape things by default in derivation names (i.e. digit cannot be the
first character etc.)

Update Quicklisp (tracking upstream); list new missing dependencies

Add some minimal README about ql-to-nix
Diffstat (limited to 'pkgs/development/lisp-modules/quicklisp-to-nix-output/postmodern.nix')
-rw-r--r--pkgs/development/lisp-modules/quicklisp-to-nix-output/postmodern.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/lisp-modules/quicklisp-to-nix-output/postmodern.nix b/pkgs/development/lisp-modules/quicklisp-to-nix-output/postmodern.nix
new file mode 100644
index 00000000000..18dc40ff51a
--- /dev/null
+++ b/pkgs/development/lisp-modules/quicklisp-to-nix-output/postmodern.nix
@@ -0,0 +1,36 @@
+args @ { fetchurl, ... }:
+rec {
+  baseName = ''postmodern'';
+  version = ''20170403-git'';
+
+  description = ''PostgreSQL programming API'';
+
+  deps = [ args."closer-mop" args."bordeaux-threads" ];
+
+  src = fetchurl {
+    url = ''http://beta.quicklisp.org/archive/postmodern/2017-04-03/postmodern-20170403-git.tgz'';
+    sha256 = ''1pklmp0y0falrmbxll79drrcrlgslasavdym5r45m8kkzi1zpv9p'';
+  };
+    
+  packageName = "postmodern";
+
+  overrides = x: {
+    postInstall = ''
+      find "$out/lib/common-lisp/" -name '*.asd' | grep -iv '/postmodern[.]asd${"$"}' |
+        while read f; do
+          env -i \
+          NIX_LISP="$NIX_LISP" \
+          NIX_LISP_PRELAUNCH_HOOK="nix_lisp_run_single_form '(progn
+            (asdf:load-system :$(basename "$f" .asd))
+            (asdf:perform (quote asdf:compile-bundle-op) :$(basename "$f" .asd))
+            (ignore-errors (asdf:perform (quote asdf:deliver-asd-op) :$(basename "$f" .asd)))
+            )'" \
+            "$out"/bin/*-lisp-launcher.sh ||
+          mv "$f"{,.sibling}; done || true
+    '';
+  };
+}
+/* (SYSTEM postmodern DESCRIPTION PostgreSQL programming API SHA256 1pklmp0y0falrmbxll79drrcrlgslasavdym5r45m8kkzi1zpv9p URL
+    http://beta.quicklisp.org/archive/postmodern/2017-04-03/postmodern-20170403-git.tgz MD5 7a4145a0a5ff5bcb7a4bf29b5c2915d2 NAME postmodern TESTNAME NIL
+    FILENAME postmodern DEPS ((NAME closer-mop FILENAME closer-mop) (NAME bordeaux-threads FILENAME bordeaux-threads)) DEPENDENCIES
+    (closer-mop bordeaux-threads) VERSION 20170403-git SIBLINGS (cl-postgres s-sql simple-date)) */