Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitLab, 4 libjpeg, 5 libpng, 6 meson, 7 ninja, 8 pixman, 9 pkg-config, 10 scdoc, 11 stdenv, 12 wayland, 13 wayland-protocols, 14 wayland-scanner, 15}: 16 17stdenv.mkDerivation (finalAttrs: { 18 pname = "grim"; 19 version = "1.5.0"; 20 21 src = fetchFromGitLab { 22 domain = "gitlab.freedesktop.org"; 23 owner = "emersion"; 24 repo = "grim"; 25 rev = "v${finalAttrs.version}"; 26 hash = "sha256-oPo6zrS3gCnviIK0+gPvtal+6c7fNFWtXnAA0YfaS+U="; 27 }; 28 29 depsBuildBuild = [ 30 # To find wayland-scanner 31 pkg-config 32 ]; 33 34 nativeBuildInputs = [ 35 meson 36 ninja 37 pkg-config 38 scdoc 39 wayland-scanner 40 ]; 41 42 buildInputs = [ 43 pixman 44 libpng 45 libjpeg 46 wayland 47 wayland-protocols 48 ]; 49 50 mesonFlags = [ (lib.mesonBool "werror" false) ]; 51 52 strictDeps = true; 53 54 meta = { 55 homepage = "https://gitlab.freedesktop.org/emersion/grim"; 56 description = "Grab images from a Wayland compositor"; 57 license = lib.licenses.mit; 58 mainProgram = "grim"; 59 maintainers = with lib.maintainers; [ khaneliman ]; 60 platforms = lib.platforms.linux; 61 }; 62})