-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocamlPackages.ocsigen-start: init at 1.0.0
- Loading branch information
1 parent
ac87d9b
commit 0910738
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ stdenv, fetchurl, buildOcaml, ocsigen-toolkit, eliom, ocaml_pcre, pgocaml, macaque, safepass, yojson, ojquery, magick, ocsigen_deriving, ocsigen_server }: | ||
|
||
buildOcaml rec | ||
{ | ||
name = "ocsigen-start"; | ||
version = "1.0.0"; | ||
|
||
buildInputs = [ eliom ]; | ||
propagatedBuildInputs = [ pgocaml macaque safepass ocaml_pcre ocsigen-toolkit yojson ojquery ocsigen_deriving ocsigen_server magick ]; | ||
|
||
patches = [ ./templates-dir.patch ]; | ||
|
||
postPatch = '' | ||
substituteInPlace "src/os_db.ml" --replace "citext" "text" | ||
''; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/ocsigen/${name}/archive/${version}.tar.gz"; | ||
sha256 = "0npc2iq39ixci6ly0fssklv07zqi5cfa1adad4hm8dbzjawkqqll"; | ||
}; | ||
|
||
createFindlibDestdir = true; | ||
|
||
meta = { | ||
homepage = http://ocsigen.org/ocsigen-start; | ||
description = "Eliom application skeleton"; | ||
longDescription ='' | ||
An Eliom application skeleton, ready to use to build your own application with users, (pre)registration, notifications, etc. | ||
''; | ||
license = stdenv.lib.licenses.lgpl21; | ||
maintainers = [ stdenv.lib.maintainers.gal_bolle ]; | ||
}; | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
pkgs/development/ocaml-modules/ocsigen-start/templates-dir.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/scripts/install.sh b/scripts/install.sh | ||
index f88ae11..d6aae70 100755 | ||
--- a/scripts/install.sh | ||
+++ b/scripts/install.sh | ||
@@ -11,9 +11,9 @@ fi | ||
|
||
TPL_DIR=$1 | ||
TPL_NAME=$2 | ||
-DEST0=$DESTDIR/$(eliom-distillery -dir) | ||
+DEST0=$out/eliom-distillery-templates | ||
DEST=$DEST0/$TPL_NAME | ||
|
||
mkdir -p $DEST0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters