1 { lib, stdenv, rustPlatform, fetchFromGitHub, makeWrapper
8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
16 sha256 = "sha256-LTpaV/fgYUgA2M6Wz5qLHnTNywh13900g+umhgLvciM=";
19 cargoSha256 = "sha256-4hi1U4jl6QA7H8AKHlU+Hqz5iKGYHRXHDsrcqY7imkU=";
21 nativeBuildInputs = [ cmake pkg-config makeWrapper ];
23 buildInputs = optionals stdenv.isLinux
25 # glfw-sys dependencies:
26 libX11 libXrandr libXinerama libXcursor libXi libXext
29 # FIXME: GLFW (X11) requires DISPLAY env variable for all tests
32 postInstall = optionalString stdenv.isLinux ''
33 mkdir -p $out/share/applications
34 cp $src/rx.desktop $out/share/applications
35 wrapProgram $out/bin/rx --prefix LD_LIBRARY_PATH : ${libGL}/lib
39 description = "Modern and extensible pixel editor implemented in Rust";
41 homepage = "https://rx.cloudhead.io/";
42 license = licenses.gpl3;
43 maintainers = with maintainers; [ minijackson Br1ght0ne ];
44 platforms = [ "x86_64-linux" ];