nur-packages

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

default.nix (742B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   cmake,
      6   plutovg,
      7 }:
      8 
      9 stdenv.mkDerivation (finalAttrs: {
     10   pname = "lunasvg";
     11   version = "3.2.1";
     12 
     13   src = fetchFromGitHub {
     14     owner = "sammycage";
     15     repo = "lunasvg";
     16     tag = "v${finalAttrs.version}";
     17     hash = "sha256-CBhz117Y8e7AdD1JJtNkR/EthsfyiQ05HW41beaY95I=";
     18   };
     19 
     20   postPatch = ''
     21     substituteInPlace CMakeLists.txt --replace-fail "plutovg 0.0.4" "plutovg"
     22   '';
     23 
     24   nativeBuildInputs = [ cmake ];
     25 
     26   buildInputs = [ plutovg ];
     27 
     28   meta = {
     29     description = "SVG rendering and manipulation library in C++";
     30     homepage = "https://github.com/sammycage/lunasvg";
     31     license = lib.licenses.mit;
     32     maintainers = [ lib.maintainers.sikmir ];
     33     platforms = lib.platforms.unix;
     34   };
     35 })