Author: raskin
Date: Sat Aug 7 22:44:25 2010
New Revision: 23031
URL: https://svn.nixos.org/websvn/nix/?rev=23031&sc=1
Log:
Add Veracity distributed VCS (+ issue tracker)
Added:
nixpkgs/trunk/pkgs/applications/version-management/veracity/
nixpkgs/trunk/pkgs/applications/version-management/veracity/default.nix
nixpkgs/trunk/pkgs/applications/version-management/veracity/src-for-default.nix
nixpkgs/trunk/pkgs/applications/version-management/veracity/src-info-for-default.nix
Modified:
nixpkgs/trunk/pkgs/development/interpreters/spidermonkey/Makefile.extra
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/applications/version-management/veracity/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/applications/version-management/veracity/default.nix
Sat Aug 7 22:44:25 2010 (r23031)
@@ -0,0 +1,49 @@
+...@{builderdefspackage
+ , cmake, curl, patch, zlib, icu, sqlite, libuuid
+ , readline, openssl, spidermonkey_1_8_0rc1
+ , ...}:
+builderDefsPackage
+(a :
+let
+ s = import ./src-for-default.nix;
+ helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
+ [];
+ buildInputs = map (n: builtins.getAttr n x)
+ (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+
+in
+rec {
+ src = a.fetchUrlFromSrcInfo s;
+
+ inherit (s) name;
+ inherit buildInputs;
+
+ phaseNames = ["prepareMakefiles" "doMake" "doDeploy"];
+
+ prepareMakefiles = a.fullDepEntry ''
+ find src -type f -exec sed -e 's...@#include
\([<"]\)sgbrings/js/j...@#include \1js/j...@g' -i '{}' ';'
+ cd ..
+ mkdir build
+ cd build
+ export NIX_LDFLAGS="$NIX_LDFLAGS -lssl"
+ cmake -G "Unix Makefiles" -D
SGBRINGS_JS_INCDIR="${spidermonkey_1_8_0rc1}/include" -D
SGBRINGS_JS_LIB="${spidermonkey_1_8_0rc1}/lib/libjs.a" ../veracity*
+ '' ["minInit" "addInputs" "doUnpack"];
+
+ doDeploy = a.fullDepEntry ''
+ ensureDir "$out/bin" "$out/share/veracity/"
+ cp -r .. "$out/share/veracity/build-dir"
+ ln -s "$out/share/veracity/build-dir/build/src/cmd/vv" "$out/bin"
+ ln -s "$out/share/veracity/build-dir/build/src/script/vscript" "$out/bin"
+ '' ["doMake" "minInit" "defEnsureDir"];
+
+ meta = {
+ description = "A distributed version control system with template-based
merging";
+ maintainers = with a.lib.maintainers;
+ [
+ raskin
+ ];
+ platforms = with a.lib.platforms;
+ linux ;
+ };
+}) x
+
Added:
nixpkgs/trunk/pkgs/applications/version-management/veracity/src-for-default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++
nixpkgs/trunk/pkgs/applications/version-management/veracity/src-for-default.nix
Sat Aug 7 22:44:25 2010 (r23031)
@@ -0,0 +1,8 @@
+rec {
+ version="0.3.0.10246";
+ name="veracity-0.3.0.10246";
+ hash="03wn6dzbjv5p50xmiznynza5c1nk38v95mzv6rk6km1ykqprnlw0";
+
url="http://download-us.sourcegear.com/Veracity/0.3.0.10246/veracity-source-${version}.tar.gz";
+
advertisedUrl="http://download-us.sourcegear.com/Veracity/0.3.0.10246/veracity-source-0.3.0.10246.tar.gz";
+
+}
Added:
nixpkgs/trunk/pkgs/applications/version-management/veracity/src-info-for-default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++
nixpkgs/trunk/pkgs/applications/version-management/veracity/src-info-for-default.nix
Sat Aug 7 22:44:25 2010 (r23031)
@@ -0,0 +1,4 @@
+{
+ downloadPage = "http://sourcegear.com/veracity/downloads.html";
+ baseName = "veracity";
+}
Modified:
nixpkgs/trunk/pkgs/development/interpreters/spidermonkey/Makefile.extra
==============================================================================
--- nixpkgs/trunk/pkgs/development/interpreters/spidermonkey/Makefile.extra
Sat Aug 7 21:44:13 2010 (r23030)
+++ nixpkgs/trunk/pkgs/development/interpreters/spidermonkey/Makefile.extra
Sat Aug 7 22:44:25 2010 (r23031)
@@ -4,4 +4,7 @@
cp -v $(PROGRAM) $(DIST)/bin
cp -v $(SHARED_LIBRARY) $(LIBRARY) $(DIST)/lib
cp -v $(JS_HFILES) $(API_HFILES) $(OTHER_HFILES) $(DIST)/include
+ mkdir -pv $(DIST)/include/js
+ find . -name '*.h' -exec cp '{}' $(DIST)/include/js ';'
+ find . -name '*.msg' -exec cp '{}' $(DIST)/include/js ';'
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Sat Aug 7 21:44:13
2010 (r23030)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Sat Aug 7 22:44:25
2010 (r23031)
@@ -6108,6 +6108,8 @@
qt = qt3;
};
+ veracity = callPackage ../applications/version-management/veracity {};
+
viewMtn = builderDefsPackage (import
../applications/version-management/viewmtn/0.10.nix)
{
inherit monotone flup cheetahTemplate highlight ctags
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits