From da0531911b6922d1cd5e9bded0ee9882eb58bb9c Mon Sep 17 00:00:00 2001 From: Alexis Praga Date: Sun, 9 Feb 2025 23:44:54 +0100 Subject: [PATCH] dragmap: fix compilation issue Missing include for Boost. Upstream PR: https://github.com/Illumina/DRAGMAP/pull/66 --- pkgs/by-name/dr/dragmap/boost-iterator-range.patch | 12 ++++++++++++ pkgs/by-name/dr/dragmap/package.nix | 14 ++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 pkgs/by-name/dr/dragmap/boost-iterator-range.patch diff --git a/pkgs/by-name/dr/dragmap/boost-iterator-range.patch b/pkgs/by-name/dr/dragmap/boost-iterator-range.patch new file mode 100644 index 000000000000..bd70eab43f49 --- /dev/null +++ b/pkgs/by-name/dr/dragmap/boost-iterator-range.patch @@ -0,0 +1,12 @@ +diff --git a/src/lib/map/Mapper.cpp b/src/lib/map/Mapper.cpp +index 6eaa2c5..781988c 100644 +--- a/src/lib/map/Mapper.cpp ++++ b/src/lib/map/Mapper.cpp +@@ -22,6 +22,7 @@ + //#include "common/Crc32Hw.hpp" + #include "common/DragenLogger.hpp" + #include "map/Mapper.hpp" ++#include + + namespace dragenos { + namespace map { diff --git a/pkgs/by-name/dr/dragmap/package.nix b/pkgs/by-name/dr/dragmap/package.nix index 9f61cbb3e5e4..2408b01be91d 100644 --- a/pkgs/by-name/dr/dragmap/package.nix +++ b/pkgs/by-name/dr/dragmap/package.nix @@ -33,6 +33,10 @@ stdenv.mkDerivation (finalAttrs: { # Add missing include cstdint. Upstream does not accept PR. Issue opened at # https://github.com/Illumina/DRAGMAP/issues/63 ./cstdint.patch + + # Missing import in Mapper.cpp + # Issue opened upstream https://github.com/Illumina/DRAGMAP/pull/66 + ./boost-iterator-range.patch ]; env = { @@ -53,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: { # Tests are launched by default from makefile doCheck = false; - meta = with lib; { + meta = { description = "Open Source version of Dragen mapper for genomics"; mainProgram = "dragen-os"; longDescription = '' @@ -61,8 +65,10 @@ stdenv.mkDerivation (finalAttrs: { which the Illumina team created to procude the same results as their proprietary DRAGEN hardware. ''; - license = licenses.gpl3; - platforms = platforms.unix; - maintainers = with maintainers; [ apraga ]; + homepage = "https://github.com/Illumina/DRAGMAP"; + changelog = "https://github.com/Illumina/DRAGMAP/releases/tag/${finalAttrs.version}"; + license = lib.licenses.gpl3; + platforms = [ "x86_64-linux" ]; + maintainers = with lib.maintainers; [ apraga ]; }; })