From 2fa1cb120e09f0694549559bcb19489f4f1353a8 Mon Sep 17 00:00:00 2001 From: twoneis Date: Fri, 6 Mar 2026 11:38:24 +0100 Subject: [PATCH 1/2] maintainers: add twoneis --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3fb6c89bf258..075a9ff642e1 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -27717,6 +27717,12 @@ githubId = 131159000; name = "Nitin Passa"; }; + twoneis = { + email = "nix@chpu.eu"; + github = "twoneis"; + githubId = 48321566; + name = "Mira Chacku Purakal"; + }; twz123 = { name = "Tom Wieczorek"; email = "tom@bibbu.net"; From e746eabfd16d4915b120f381f24a9ef09fb79932 Mon Sep 17 00:00:00 2001 From: twoneis Date: Fri, 6 Mar 2026 13:12:08 +0100 Subject: [PATCH 2/2] osmium: init at 0.0.16 --- pkgs/by-name/os/osmium/package.nix | 108 +++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 pkgs/by-name/os/osmium/package.nix diff --git a/pkgs/by-name/os/osmium/package.nix b/pkgs/by-name/os/osmium/package.nix new file mode 100644 index 000000000000..f3b7376034be --- /dev/null +++ b/pkgs/by-name/os/osmium/package.nix @@ -0,0 +1,108 @@ +{ + stdenv, + fetchurl, + lib, + makeDesktopItem, + makeShellWrapper, + autoPatchelfHook, + libgcc, + libx11, + libxext, + libxcb, + libGL, + ffmpeg, + glib, + dbus, + pango, + libxcomposite, + libxdamage, + libxrandr, + libxkbcommon, + libgbm, + nss, + nspr, + gtk3, +}: + +stdenv.mkDerivation rec { + pname = "osmium"; + version = "0.0.16"; + + src = fetchurl { + url = "https://updater.osmium.chat/Osmium-${version}-alpha-x64.tar.gz"; + hash = "sha256-dMOyZ9oPVnLt6MHeQwsMJ03wgvaKzalynwAL/PRfI28="; + }; + + nativeBuildInputs = [ + autoPatchelfHook + makeShellWrapper + ]; + + buildInputs = [ + libgcc + libx11 + libxext + libxcb + ffmpeg + glib + dbus + pango + libxcomposite + libxdamage + libxrandr + libxkbcommon + libgbm + nss + nspr + gtk3 + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/{bin,opt,share/{pixmaps,icons/hicolor/256x256/apps}} + + mv * $out/opt/ + chmod +x $out/opt/osmium + + ln -s $out/opt/osmium $out/bin/ + + wrapProgramShell $out/opt/osmium \ + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \ + --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ + --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL ]} + + ln -s $out/opt/resources/assets/icons/256x256.png $out/share/pixmaps/osmium.png + ln -s $out/opt/resources/assets/icons/256x256.png $out/share/icons/hicolor/256x256/apps/osmium.png + + runHook postInstall + ''; + + desktopItem = makeDesktopItem { + name = "osmium"; + exec = "osmium"; + icon = "osmium"; + desktopName = "Osmium"; + genericName = "A globally distributed community messaging and voice/video platform."; + categories = [ + "Network" + "InstantMessaging" + ]; + mimeTypes = [ "x-scheme-handler/osmium" ]; + startupWMClass = "Osmium"; + }; + + meta = { + description = "Globally distributed community messaging and voice/video platform"; + homepage = "https://osmium.chat/"; + license = lib.licenses.unfree; + mainProgram = "osmium"; + maintainers = with lib.maintainers; [ + twoneis + ]; + platforms = [ + "x86_64-linux" + ]; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +}