nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 55 lines 942 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 fetchpatch2, 6 meson, 7 ninja, 8 pkg-config, 9 wrapGAppsHook4, 10 vips, 11 gtk4, 12 python3, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "vipsdisp"; 17 version = "3.1.0"; 18 19 src = fetchFromGitHub { 20 owner = "jcupitt"; 21 repo = "vipsdisp"; 22 tag = "v${version}"; 23 hash = "sha256-3HciPvem8ySIW/H7d5M71lQV9mBcT6ZlpF3yo8BXsPE="; 24 }; 25 26 postPatch = '' 27 chmod +x ./meson_post_install.py 28 patchShebangs ./meson_post_install.py 29 ''; 30 31 nativeBuildInputs = [ 32 meson 33 ninja 34 pkg-config 35 wrapGAppsHook4 36 ]; 37 38 buildInputs = [ 39 vips 40 gtk4 41 python3 42 ]; 43 44 # No tests implemented. 45 doCheck = false; 46 47 meta = { 48 homepage = "https://github.com/jcupitt/vipsdisp"; 49 description = "Tiny image viewer with libvips"; 50 license = lib.licenses.mit; 51 mainProgram = "vipsdisp"; 52 maintainers = with lib.maintainers; [ foo-dogsquared ]; 53 platforms = lib.platforms.unix; 54 }; 55}