unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#38290] [PATCH] gnu: nmoldyn: New source code location.
@ 2019-11-19 18:49 Konrad Hinsen
  2019-11-21  9:11 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Konrad Hinsen @ 2019-11-19 18:49 UTC (permalink / raw)
  To: 38290

* gnu/packages/chemistry.scm (nmoldyn): New source code location.
Following the annoucement of Bitbucket to delete all
Mercurial repositories in June 2020, the source code has
been migrated to GitHub.
---
 gnu/packages/chemistry.scm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/chemistry.scm b/gnu/packages/chemistry.scm
index b6345b9d27..3bdd406a47 100644
--- a/gnu/packages/chemistry.scm
+++ b/gnu/packages/chemistry.scm
@@ -243,13 +243,14 @@ analogy is that InChI is the bar-code for chemistry and chemical structures.")
     (version "3.0.11")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "https://bitbucket.org/khinsen/"
-                           "nmoldyn3/downloads/nMOLDYN-"
-                           version ".tar.gz"))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/khinsen/nMOLDYN3")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
         (base32
-         "1mvmz3lkr217kdrd8cvdr1d82y58wp1403c9rnd943mijgq8xb5a"))))
+         "016h4bqg419p6s7bcx55q5iik91gqmk26hbnfgj2j6zl0j36w51r"))))
     (build-system python-build-system)
     (inputs
      `(("python-matplotlib" ,(with-numpy-1.8 python2-matplotlib))
-- 
2.24.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#38290] [PATCH] gnu: nmoldyn: New source code location.
  2019-11-19 18:49 [bug#38290] [PATCH] gnu: nmoldyn: New source code location Konrad Hinsen
@ 2019-11-21  9:11 ` Ludovic Courtès
  2019-11-21  9:13   ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-11-21  9:11 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: 38290

Hello!

Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:

> * gnu/packages/chemistry.scm (nmoldyn): New source code location.
> Following the annoucement of Bitbucket to delete all
> Mercurial repositories in June 2020, the source code has
> been migrated to GitHub.

[...]

> -       (method url-fetch)
> -       (uri (string-append "https://bitbucket.org/khinsen/"
> -                           "nmoldyn3/downloads/nMOLDYN-"
> -                           version ".tar.gz"))
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/khinsen/nMOLDYN3")
> +             (commit (string-append "v" version))))
> +       (file-name (git-file-name name version))
>         (sha256
>          (base32
> -         "1mvmz3lkr217kdrd8cvdr1d82y58wp1403c9rnd943mijgq8xb5a"))))
> +         "016h4bqg419p6s7bcx55q5iik91gqmk26hbnfgj2j6zl0j36w51r"))))

It’s weird that the content hash differs.  Did you try to diff the hg
checkout and the Git checkout?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#38290] [PATCH] gnu: nmoldyn: New source code location.
  2019-11-21  9:11 ` Ludovic Courtès
@ 2019-11-21  9:13   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2019-11-21  9:13 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: 38290

Ludovic Courtès <ludo@gnu.org> skribis:

>> -       (method url-fetch)
>> -       (uri (string-append "https://bitbucket.org/khinsen/"
>> -                           "nmoldyn3/downloads/nMOLDYN-"
>> -                           version ".tar.gz"))
>> +       (method git-fetch)
>> +       (uri (git-reference
>> +             (url "https://github.com/khinsen/nMOLDYN3")
>> +             (commit (string-append "v" version))))
>> +       (file-name (git-file-name name version))
>>         (sha256
>>          (base32
>> -         "1mvmz3lkr217kdrd8cvdr1d82y58wp1403c9rnd943mijgq8xb5a"))))
>> +         "016h4bqg419p6s7bcx55q5iik91gqmk26hbnfgj2j6zl0j36w51r"))))
>
> It’s weird that the content hash differs.  Did you try to diff the hg
> checkout and the Git checkout?

Oh forget it, I see we’re going from a tarball to a checkout, hence the
difference.

LGTM!  :-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-21  9:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-19 18:49 [bug#38290] [PATCH] gnu: nmoldyn: New source code location Konrad Hinsen
2019-11-21  9:11 ` Ludovic Courtès
2019-11-21  9:13   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).