Skip to content

Commit

Permalink
Merge pull request NixOS#221957 from natsukium/dssp/update
Browse files Browse the repository at this point in the history
dssp: 4.0.5 -> 4.2.2.1
  • Loading branch information
SuperSandro2000 committed Apr 18, 2023
2 parents 44d7ea5 + 6294390 commit 555daa9
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 8 deletions.
19 changes: 15 additions & 4 deletions pkgs/applications/science/biology/dssp/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
{ lib, stdenv, fetchFromGitHub, boost, cmake, libcifpp, zlib, }:
{ lib, stdenv, fetchFromGitHub, cmake, libcifpp, libmcfp, zlib }:
let
libcifpp' = libcifpp.overrideAttrs (oldAttrs: rec {
# dssp 4.2.2.1 requires specific version "5.0.8" of libcifpp
version = "5.0.8";
src = fetchFromGitHub {
inherit (oldAttrs.src) owner repo;
rev = "v${version}";
sha256 = "sha256-KJGcopGhCWSl+ElG3BPJjBf/kvYJowOHxto6Ci1IMco=";
};
});
in

stdenv.mkDerivation rec {
pname = "dssp";
version = "4.0.5";
version = "4.2.2.1";

src = fetchFromGitHub {
owner = "PDB-REDO";
repo = pname;
rev = "v${version}";
sha256 = "1x35rdcm4fch66pjbmy73lv0gdb6g9y3v023a66512a6nzsqjsir";
sha256 = "sha256-vmGvC5d8LTo+pcY9sxwj0d6JvH8Lyk+QSOZo5raBci4=";
};

nativeBuildInputs = [ cmake ];

buildInputs = [ boost libcifpp zlib ];
buildInputs = [ libcifpp' libmcfp zlib ];

meta = with lib; {
description = "Calculate the most likely secondary structure assignment given the 3D structure of a protein";
Expand Down
11 changes: 7 additions & 4 deletions pkgs/development/libraries/libcifpp/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{ lib, stdenv, fetchFromGitHub, boost, cmake, }:
{ lib, stdenv, fetchFromGitHub, boost, cmake, zlib }:

stdenv.mkDerivation rec {
pname = "libcifpp";
version = "4.2.2";
version = "5.0.8";

src = fetchFromGitHub {
owner = "PDB-REDO";
repo = pname;
rev = "v${version}";
sha256 = "0mhplcpni4p8lavrq4fz9qq8mbxhvpnlxzy55yrz8y07d76ajg6y";
sha256 = "sha256-KJGcopGhCWSl+ElG3BPJjBf/kvYJowOHxto6Ci1IMco=";
};

nativeBuildInputs = [ cmake ];

buildInputs = [ boost ];
# disable network access
cmakeFlags = [ "-DCIFPP_DOWNLOAD_CCD=OFF" ];

buildInputs = [ boost zlib ];

meta = with lib; {
description = "Manipulate mmCIF and PDB files";
Expand Down
23 changes: 23 additions & 0 deletions pkgs/development/libraries/libmcfp/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ lib, stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
pname = "libmcfp";
version = "1.2.3";

src = fetchFromGitHub {
owner = "mhekkel";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Mi5nj8vR1j3V7fIMBrSyhD57emmlkCb0F08+5s7Usj0=";
};

nativeBuildInputs = [ cmake ];

meta = with lib; {
description = "Header only library that can collect configuration options from command line arguments";
homepage = "https://github.com/mhekkel/libmcfp";
license = licenses.bsd2;
maintainers = with maintainers; [ natsukium ];
platforms = platforms.unix;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21665,6 +21665,8 @@ with pkgs;

libmaxminddb = callPackage ../development/libraries/libmaxminddb { };

libmcfp = callPackage ../development/libraries/libmcfp { };

libmcrypt = callPackage ../development/libraries/libmcrypt { };

libmediaart = callPackage ../development/libraries/libmediaart { };
Expand Down

0 comments on commit 555daa9

Please sign in to comment.