[Nix-dev] Re: [Nix-commits] SVN commit: nix - 17405 - MarcWeber - in nixpkgs/trunk/pkgs: tools/package-management/nix top-level
Marc Weber
marco-oweber at gmx.de
Fri Sep 25 00:20:47 CEST 2009
Are you fin with me adding a link to the patch so that everyone can
apply it on his own?
Also did you like allowing passing some patches?
So is this less intrusive enough ?
diff --git a/pkgs/tools/package-management/nix/unstable.nix b/pkgs/tools/package-management/nix/unstable.nix
index 68e836b..58c1c92 100644
--- a/pkgs/tools/package-management/nix/unstable.nix
+++ b/pkgs/tools/package-management/nix/unstable.nix
@@ -4,13 +4,20 @@
, supportOldDBs ? true
, nameSuffix ? ""
, patches ? []
+ # eg try http://mawercer.de/~marc/debug-coercion-failures.patch to make nix output what item it found when complaining about wrong types
}:
-stdenv.mkDerivation rec {
- name = "nix-0.13pre17232${nameSuffix}";
+let
+ vName = "nix-0.13pre17232";
+ name = "${vName}${nameSuffix}${if patches == [] then "" else "-patched"}";
+in
+
+stdenv.mkDerivation {
+
+ inherit name;
src = fetchurl {
- url = "http://hydra.nixos.org/build/75293/download/4/${name}.tar.bz2";
+ url = "http://hydra.nixos.org/build/75293/download/4/${vName}.tar.bz2";
sha256 = "aaea96d6dd87f8cceb2973e561d1cd0ca1beeaa0384eb91f4db09ac75d42148f";
};
Marc Weber
More information about the nix-dev
mailing list