From 9d46f027cbb9af225311a0ee15d94bc5d18e0b82 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 24 Jan 2016 14:49:54 +0000 Subject: [PATCH] hg-crecord: switch to same revision, but fetched properly using fetchFromBitbucket I was previously just fetching the bitbucket-generated tarball of this revision, but this was vulnerable to breakage when bitbucket made micro-changes to the tarball generation, causing the file hash to change. This should make mercurial-full buildable again. --- pkgs/top-level/python-packages.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3e9fe466fdd..ef6747d122a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7942,9 +7942,10 @@ in modules // { name = "hg-crecord-${rev}"; disabled = isPy3k; - src = pkgs.fetchurl { - url = "https://bitbucket.org/edgimar/crecord/get/${builtins.substring 0 12 rev}.tar.gz"; - sha256 = "02003fa5620ec40a5ad0d7cede2e65c2cb398a7fe4e1ee26bd3396a87d63ad35"; + src = pkgs.fetchhg { + inherit rev; + url = "https://bitbucket.org/edgimar/crecord"; + sha256 = "14x1k5k0jv3fiynpdfyp5zh4qvs4nr6qwy09chv3js3dhs5887ic"; }; # crecord comes as just a bare directory