From 6a0e9fede34c4a45461179ae8dfd8a83cca6a880 Mon Sep 17 00:00:00 2001 From: Bruno Rodrigues Date: Sun, 17 Nov 2024 21:00:46 +0100 Subject: [PATCH] OpenBUGS: fixed build --- .../machine-learning/openbugs/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/science/machine-learning/openbugs/default.nix b/pkgs/applications/science/machine-learning/openbugs/default.nix index 8d49534a11f8..926188b41815 100644 --- a/pkgs/applications/science/machine-learning/openbugs/default.nix +++ b/pkgs/applications/science/machine-learning/openbugs/default.nix @@ -1,22 +1,27 @@ { lib , stdenv -, fetchurl +, fetchFromGitHub }: stdenv.mkDerivation rec { pname = "OpenBUGS"; version = "3.2.3"; - src = fetchurl { - url = "https://www.mrc-bsu.cam.ac.uk/wp-content/uploads/2018/04/${pname}-${version}.tar.gz"; - sha256 = "sha256-oonE2gxKw3H4ATImyF69Cp4d7F3puFiVDkhUy4FLTtg="; + outputs = [ "out" ]; + + src = fetchFromGitHub { + owner = "jsta"; + repo = "openbugs"; + rev = "cd921342ba13ee89ee60f9aebd2e96c42bd59ae3"; + sha256 = "sha256-11LrScN1kvtq0Fo7RWGjbQO0U5b5brCbipl5pdZnrFs="; }; meta = with lib; { - description = "Open source program for Bayesian modelling based on MCMC"; + description = "Software package for performing Bayesian analysis and simulation using Markov Chain Monte Carlo"; homepage = "https://www.mrc-bsu.cam.ac.uk/software/bugs/openbugs/"; - maintainers = with maintainers; [ andresnav ]; + changelog = "https://github.com/jsta/openbugs/blob/master/ChangeLog"; + platforms = [ "i686-linux" "x86_64-linux" ]; license = licenses.gpl3Only; - platforms = [ "i686-linux" ]; + maintainers = with maintainers; [ andresnav ]; }; }