nur-packages

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

default.nix (1039B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   autoreconfHook,
      6   pkg-config,
      7   cairo,
      8   librsvg,
      9   darwin,
     10   memstreamHook,
     11   testers,
     12 }:
     13 
     14 stdenv.mkDerivation (finalAttrs: {
     15   pname = "smrender";
     16   version = "4.3.0";
     17 
     18   src = fetchFromGitHub {
     19     owner = "rahra";
     20     repo = "smrender";
     21     rev = "v${finalAttrs.version}";
     22     hash = "sha256-b9xuOPLxA9zZzIwWl+FTSW5XHgJ2sFoC578ZH6iwjaM=";
     23   };
     24 
     25   nativeBuildInputs = [
     26     autoreconfHook
     27     pkg-config
     28   ];
     29 
     30   buildInputs =
     31     [
     32       cairo
     33       librsvg
     34     ]
     35     ++ lib.optionals stdenv.isDarwin [
     36       darwin.apple_sdk.frameworks.Foundation
     37       memstreamHook
     38     ];
     39 
     40   passthru.tests.version = testers.testVersion {
     41     package = finalAttrs.finalPackage;
     42     version = "V${finalAttrs.version}";
     43   };
     44 
     45   meta = {
     46     description = "A powerful, flexible, and modular rule-based rendering engine for OSM data";
     47     homepage = "https://github.com/rahra/smrender";
     48     license = lib.licenses.gpl3Only;
     49     maintainers = [ lib.maintainers.sikmir ];
     50     platforms = lib.platforms.unix;
     51   };
     52 })