2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libcifpp
|
|
|
|
, libmcfp
|
|
|
|
, zlib
|
|
|
|
}:
|
2023-04-29 16:46:19 +00:00
|
|
|
let
|
2023-07-15 17:15:38 +00:00
|
|
|
libcifpp' = libcifpp.overrideAttrs (oldAttrs: {
|
|
|
|
# dssp 4.3.1 requires specific version "5.1.0" of libcifpp
|
|
|
|
version = "5.1.0";
|
2023-04-29 16:46:19 +00:00
|
|
|
src = fetchFromGitHub {
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit (oldAttrs.src) owner repo rev;
|
|
|
|
hash = "sha256-PUsi4T6huSqwaa6RnBP1Vj+0a1ePrvrHD0641Lkkc5s=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
in
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-08-12 12:06:08 +00:00
|
|
|
pname = "dssp";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "4.4.2";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PDB-REDO";
|
2023-07-15 17:15:38 +00:00
|
|
|
repo = "dssp";
|
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-Gic/rE/G24P5g4Uhf2lcvVa6i/4KGQzCpK4KlpjXcS0=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildInputs = [
|
|
|
|
libcifpp'
|
|
|
|
libmcfp
|
|
|
|
zlib
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Calculate the most likely secondary structure assignment given the 3D structure of a protein";
|
|
|
|
homepage = "https://github.com/PDB-REDO/dssp";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/PDB-REDO/libcifpp/releases/tag/${finalAttrs.src.rev}";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
})
|