default.nix (629B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 plutovg, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { 10 pname = "plutosvg"; 11 version = "0.0.6"; 12 13 src = fetchFromGitHub { 14 owner = "sammycage"; 15 repo = "plutosvg"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-BpxHVD4P4ZQ9pAvhBHjz9ns7EEsnFqvUEyDKcM2oJps="; 18 }; 19 20 nativeBuildInputs = [ cmake ]; 21 22 buildInputs = [ plutovg ]; 23 24 meta = { 25 description = "Tiny SVG rendering library in C"; 26 homepage = "https://github.com/sammycage/plutosvg"; 27 license = lib.licenses.mit; 28 maintainers = [ lib.maintainers.sikmir ]; 29 platforms = lib.platforms.unix; 30 }; 31 })