Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 48 lines 1.0 kB view raw
1{ lib 2, stdenv 3, meson 4, ninja 5, vulkan-loader 6, vulkan-headers 7, fetchFromGitHub 8}: 9stdenv.mkDerivation rec { 10 pname = "vkdisplayinfo"; 11 version = "0.1"; 12 13 src = fetchFromGitHub { 14 owner = "ChristophHaag"; 15 repo = "vkdisplayinfo"; 16 rev = version; 17 hash = "sha256-n6U7T5aOYTpgWE2WGPBPHtQKzitf9PxAoXJNWyz4rYw="; 18 }; 19 20 postInstall = '' 21 install vkdisplayinfo -Dm755 -t $out/bin 22 ''; 23 24 doInstallCheck = true; 25 installCheckPhase = '' 26 runHook preInstallCheck 27 ($out/bin/vkdisplayinfo 2>&1 || true) | grep -q vkdisplayinfo 28 runHook postInstallCheck 29 ''; 30 31 nativeBuildInputs = [ 32 meson 33 ninja 34 ]; 35 36 buildInputs = [ 37 vulkan-loader 38 vulkan-headers 39 ]; 40 41 meta = with lib; { 42 description = "Print displays and modes enumerated with the Vulkan function vkGetPhysicalDeviceDisplayPropertiesKHR"; 43 homepage = "https://github.com/ChristophHaag/vkdisplayinfo"; 44 platforms = platforms.linux; 45 license = licenses.boost; 46 maintainers = [ maintainers.LunNova ]; 47 }; 48}