Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenvNoCC 3, fetchFromGitHub 4, patsh 5, xorg 6}: 7 8stdenvNoCC.mkDerivation rec { 9 pname = "sx"; 10 version = "2.1.7"; 11 12 src = fetchFromGitHub { 13 owner = "earnestly"; 14 repo = pname; 15 rev = version; 16 sha256 = "0xv15m30nhcknasqiybj5wwf7l91q4a4jf6xind8x5x00c6br6nl"; 17 }; 18 19 makeFlags = [ "PREFIX=$(out)" ]; 20 21 nativeBuildInputs = [ patsh ]; 22 23 buildInputs = [ 24 xorg.xauth 25 xorg.xorgserver 26 ]; 27 28 postInstall = '' 29 patsh -f $out/bin/sx -s ${builtins.storeDir} 30 ''; 31 32 meta = with lib; { 33 description = "Simple alternative to both xinit and startx for starting a Xorg server"; 34 homepage = "https://github.com/earnestly/sx"; 35 license = licenses.mit; 36 platforms = platforms.linux; 37 maintainers = with maintainers; [ figsoda thiagokokada ]; 38 }; 39}