nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 67 lines 1.0 kB view raw
1{ 2 lib, 3 gcc15Stdenv, 4 fetchFromGitHub, 5 nix-update-script, 6 cmake, 7 pkg-config, 8 cairo, 9 file, 10 hyprutils, 11 libjpeg, 12 libjxl, 13 librsvg, 14 libspng, 15 libwebp, 16 pango, 17 pixman, 18}: 19 20gcc15Stdenv.mkDerivation (finalAttrs: { 21 pname = "hyprgraphics"; 22 version = "0.5.0"; 23 24 src = fetchFromGitHub { 25 owner = "hyprwm"; 26 repo = "hyprgraphics"; 27 tag = "v${finalAttrs.version}"; 28 hash = "sha256-MRD+Jr2bY11MzNDfenENhiK6pvN+nHygxdHoHbZ1HtE="; 29 }; 30 31 nativeBuildInputs = [ 32 cmake 33 pkg-config 34 ]; 35 36 buildInputs = [ 37 cairo 38 file 39 hyprutils 40 libjpeg 41 libjxl 42 librsvg 43 libspng 44 libwebp 45 pango 46 pixman 47 ]; 48 49 outputs = [ 50 "out" 51 "dev" 52 ]; 53 54 doCheck = true; 55 56 passthru = { 57 updateScript = nix-update-script { }; 58 }; 59 60 meta = { 61 homepage = "https://github.com/hyprwm/hyprgraphics"; 62 description = "Cpp graphics library for Hypr* ecosystem"; 63 license = lib.licenses.bsd3; 64 platforms = lib.platforms.linux ++ lib.platforms.freebsd; 65 teams = [ lib.teams.hyprland ]; 66 }; 67})