warpd: 1.3.4 -> 1.3.5

fix

formatting fixes

+10 -14
+10 -14
pkgs/applications/misc/warpd/default.nix
··· 2 , stdenv 3 , fetchFromGitHub 4 , git 5 - , libXi 6 - , libXinerama 7 - , libXft 8 - , libXfixes 9 - , libXtst 10 - , libX11 11 - , libXext 12 - , waylandSupport ? false, cairo, libxkbcommon, wayland 13 }: 14 15 stdenv.mkDerivation rec { 16 pname = "warpd"; 17 - version = "1.3.4"; 18 19 src = fetchFromGitHub { 20 owner = "rvaiya"; 21 repo = "warpd"; 22 rev = "v${version}"; 23 - sha256 = "sha256-aNv2/+tREvKlpTAsbvmFxkXzONNt73/061i4E3fPFBM="; 24 leaveDotGit = true; 25 }; 26 27 nativeBuildInputs = [ git ]; 28 29 - buildInputs = if waylandSupport then [ 30 cairo 31 libxkbcommon 32 wayland 33 - ] else [ 34 libXi 35 libXinerama 36 libXft ··· 40 libXext 41 ]; 42 43 - makeFlags = [ "PREFIX=$(out)" ] ++ lib.optionals waylandSupport [ "PLATFORM=wayland" ]; 44 45 postPatch = '' 46 - substituteInPlace Makefile \ 47 --replace '-m644' '-Dm644' \ 48 --replace '-m755' '-Dm755' \ 49 --replace 'warpd.1.gz $(DESTDIR)' 'warpd.1.gz -t $(DESTDIR)' \
··· 2 , stdenv 3 , fetchFromGitHub 4 , git 5 + , withWayland ? true, cairo, libxkbcommon, wayland 6 + , withX ? true, libXi, libXinerama, libXft, libXfixes, libXtst, libX11, libXext 7 }: 8 9 stdenv.mkDerivation rec { 10 pname = "warpd"; 11 + version = "1.3.5"; 12 13 src = fetchFromGitHub { 14 owner = "rvaiya"; 15 repo = "warpd"; 16 rev = "v${version}"; 17 + hash = "sha256-5B3Ec+R1vF2iI0ennYcsRlnFXJkSns0jVbyAWJA4lTU="; 18 leaveDotGit = true; 19 }; 20 21 nativeBuildInputs = [ git ]; 22 23 + buildInputs = lib.optionals withWayland [ 24 cairo 25 libxkbcommon 26 wayland 27 + ] ++ lib.optionals withX [ 28 libXi 29 libXinerama 30 libXft ··· 34 libXext 35 ]; 36 37 + makeFlags = [ "PREFIX=$(out)" ] 38 + ++ lib.optional (!withWayland) "DISABLE_WAYLAND=y" 39 + ++ lib.optional (!withX) "DISABLE_X=y"; 40 41 postPatch = '' 42 + substituteInPlace mk/linux.mk \ 43 --replace '-m644' '-Dm644' \ 44 --replace '-m755' '-Dm755' \ 45 --replace 'warpd.1.gz $(DESTDIR)' 'warpd.1.gz -t $(DESTDIR)' \