summary refs log tree commit diff
path: root/doc/coding-conventions.xml
diff options
context:
space:
mode:
authorArseniy Seroka <ars.seroka@gmail.com>2015-02-23 20:14:44 +0300
committerArseniy Seroka <ars.seroka@gmail.com>2015-02-23 23:55:15 +0300
commit83434becf0f9aec303cc8947d87a25040af2ff9d (patch)
tree7616f1b08be904c377e904d808b80de161a6da51 /doc/coding-conventions.xml
parent2550304bb62f0d1c51ab4551b190a0e953721cdb (diff)
downloadnixlib-83434becf0f9aec303cc8947d87a25040af2ff9d.tar
nixlib-83434becf0f9aec303cc8947d87a25040af2ff9d.tar.gz
nixlib-83434becf0f9aec303cc8947d87a25040af2ff9d.tar.bz2
nixlib-83434becf0f9aec303cc8947d87a25040af2ff9d.tar.lz
nixlib-83434becf0f9aec303cc8947d87a25040af2ff9d.tar.xz
nixlib-83434becf0f9aec303cc8947d87a25040af2ff9d.tar.zst
nixlib-83434becf0f9aec303cc8947d87a25040af2ff9d.zip
add information about git-based pkgs
Diffstat (limited to 'doc/coding-conventions.xml')
-rw-r--r--doc/coding-conventions.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/coding-conventions.xml b/doc/coding-conventions.xml
index 61d373738f90..04adcdea1cb2 100644
--- a/doc/coding-conventions.xml
+++ b/doc/coding-conventions.xml
@@ -256,6 +256,12 @@ bound to the variable name <varname>e2fsprogs</varname> in
   a package named <literal>hello-svn</literal> by
   <command>nix-env</command>.</para></listitem>
 
+  <listitem><para>If package is fetched from git's commit then
+  the version part of the name <emphasis>must</emphasis> be the date of that 
+  (fetched) commit. The date must be in <literal>"YYYY-MM-DD"</literal> format.
+  Also add <literal>"git"</literal> to the name - e.g.,
+  <literal>"pkgname-git-2014-09-23"</literal>.</para></listitem>
+
   <listitem><para>Dashes in the package name should be preserved
   in new variable names, rather than converted to underscores
   (which was convention up to around 2013 and most names