Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 45 lines 906 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation { 8 pname = "fbvnc"; 9 version = "1.0.2"; 10 11 src = fetchFromGitHub { 12 owner = "zohead"; 13 repo = "fbvnc"; 14 rev = "783204ff6c92afec33d6d36f7e74f1fcf2b1b601"; 15 hash = "sha256-oT7+6kIeFDgU6GbcHYQ6k0jCU84p8fTEVgUozYMkeVI="; 16 }; 17 18 patches = [ 19 # GCC 14 errors on missing function definitions 20 # https://github.com/zohead/fbvnc/pull/3 21 ./gcc14-fix.patch 22 ]; 23 24 makeFlags = [ 25 "CC:=$(CC)" 26 ]; 27 28 installPhase = '' 29 runHook preInstall 30 31 install -Dm555 fbvnc -t "$out/bin" 32 install -Dm444 README.md -t "$out/share/doc/fbvnc" 33 34 runHook postInstall 35 ''; 36 37 meta = { 38 description = "Framebuffer VNC client"; 39 license = lib.licenses.bsd3; 40 maintainers = [ lib.maintainers.raskin ]; 41 platforms = lib.platforms.linux; 42 homepage = "https://github.com/zohead/fbvnc/"; 43 mainProgram = "fbvnc"; 44 }; 45}