mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
25 lines
696 B
Nix
25 lines
696 B
Nix
{ lib, stdenv, fetchurl, cmake, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "niftyreg";
|
|
version = "1.3.9";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/${pname}/nifty_reg-${version}/nifty_reg-${version}.tar.gz";
|
|
sha256 = "07v9v9s41lvw72wpb1jgh2nzanyc994779bd35p76vg8mzifmprl";
|
|
};
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=narrowing" ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ zlib ];
|
|
|
|
meta = with lib; {
|
|
homepage = "http://cmictig.cs.ucl.ac.uk/wiki/index.php/NiftyReg";
|
|
description = "Medical image registration software";
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
platforms = [ "x86_64-linux" ];
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|