nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (743B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   gdal,
      7   mpich,
      8 }:
      9 
     10 stdenv.mkDerivation (finalAttrs: {
     11   pname = "taudem";
     12   version = "5.3.8";
     13 
     14   src = fetchFromGitHub {
     15     owner = "dtarb";
     16     repo = "TauDEM";
     17     rev = "v${finalAttrs.version}";
     18     hash = "sha256-lomjPyNzm9K4jCs7fYwDYrG48qbeRedakWFwJj7pDEI=";
     19   };
     20 
     21   sourceRoot = "${finalAttrs.src.name}/src";
     22 
     23   nativeBuildInputs = [ cmake ];
     24 
     25   buildInputs = [
     26     gdal
     27     mpich
     28   ];
     29 
     30   env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
     31 
     32   meta = {
     33     description = "Terrain Analysis Using Digital Elevation Models";
     34     homepage = "http://hydrology.usu.edu/taudem";
     35     license = lib.licenses.gpl3;
     36     maintainers = [ lib.maintainers.sikmir ];
     37     platforms = lib.platforms.unix;
     38   };
     39 })