24 rustPlatform.buildRustPackage rec {
28 src = fetchFromGitHub {
32 hash = "sha256-6jow0ektqmEcwFEaJgPqhJPs8LlYmPRLE+zqk1T4wDk=";
35 cargoHash = "sha256-0e4FoWhZwq6as0JYHGj1zoAOSr71ztqtWJEY3QXDs9s=";
50 ++ lib.optionals stdenv.hostPlatform.isLinux [
61 ++ lib.optionals stdenv.hostPlatform.isDarwin [
67 "--skip=tests::net" # requires network access
68 "--skip=tests::flathub"
72 install -Dm444 $src/res/icons/icon.png -t $out/share/icons/hicolor/128x128/apps/
73 install -Dm444 $src/res/oculante.desktop -t $out/share/applications
74 wrapProgram $out/bin/oculante \
75 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL ]}
79 broken = stdenv.hostPlatform.isDarwin;
80 description = "Minimalistic crossplatform image viewer written in Rust";
81 homepage = "https://github.com/woelper/oculante";
82 changelog = "https://github.com/woelper/oculante/blob/${version}/CHANGELOG.md";
83 license = licenses.mit;
84 mainProgram = "oculante";
85 maintainers = with maintainers; [