diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-01-18 10:29:58 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-01-18 10:29:58 +0000 |
commit | b00839299f14d6965318a3f72f42a2dd65d6b2bd (patch) | |
tree | 4078fe68447aee3eadc7346a2b72dd2f54390c8b /pkgs/applications/version-management/bazaar | |
parent | 432c157293ae2aab3dea494b7eef5489123475c0 (diff) |
* makeWrapper: new function that transparently takes care of creating
a wrapper script. E.g. wrapProgram $out/bin/prog --set FOO bar will create a wrapper around "prog" so that the environment variable FOO is set to bar. The original program is renamed to $out/bin/.wrapped-prog. * Function makeSetupHook to convert a script into a setup hook which can be included in buildInputs. This makes it easier to use scripts like makeWrapper. * Added Bazaar, yet another distributed version management system. svn path=/nixpkgs/trunk/; revision=10211
Diffstat (limited to 'pkgs/applications/version-management/bazaar')
-rw-r--r-- | pkgs/applications/version-management/bazaar/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/bazaar/default.nix b/pkgs/applications/version-management/bazaar/default.nix new file mode 100644 index 0000000000000..d64bd60bfd2a1 --- /dev/null +++ b/pkgs/applications/version-management/bazaar/default.nix @@ -0,0 +1,22 @@ +{stdenv, fetchurl, python, makeWrapper}: + +stdenv.mkDerivation { + name = "bazaar-1.1"; + + src = fetchurl { + url = file:///home/eelco/Downloads/bzr-1.1.tar.gz; + sha256 = "1qpkw580r22yxybdghx2ha0kyk22brbhd1kg9wwjh209dqy2gqzc"; + }; + + buildInputs = [python makeWrapper]; + + installPhase = '' + python setup.py install --prefix=$out + wrapProgram $out/bin/bzr --prefix PYTHONPATH : "$(toPythonPath $out)" + ''; + + meta = { + homepage = http://bazaar-vcs.org/; + description = "A distributed version control system that Just Works"; + }; +} |