From 3f406fbac84caa1b9d34cd1e761920be4b2c0e13 Mon Sep 17 00:00:00 2001 From: 2kybe3 Date: Sat, 2 May 2026 20:39:37 +0200 Subject: [PATCH] s2png: 0.7.2 -> 1.0.0, adopt Diff: https://github.com/dbohdan/s2png/compare/v0.7.2...v1.0.0 Changelogs: > https://github.com/dbohdan/s2png/releases/tag/v1.0.0 > https://github.com/dbohdan/s2png/releases/tag/v0.11.1 > https://github.com/dbohdan/s2png/releases/tag/v0.11.0 > https://github.com/dbohdan/s2png/releases/tag/v0.10.0 > https://github.com/dbohdan/s2png/releases/tag/v0.9.0 > https://github.com/dbohdan/s2png/releases/tag/v0.8.0 > https://github.com/dbohdan/s2png/releases/tag/v0.7.3 --- pkgs/by-name/s2/s2png/package.nix | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/s2/s2png/package.nix b/pkgs/by-name/s2/s2png/package.nix index cb6d617e80ad..3fc87a93f284 100644 --- a/pkgs/by-name/s2/s2png/package.nix +++ b/pkgs/by-name/s2/s2png/package.nix @@ -1,38 +1,32 @@ { lib, - stdenv, + rustPlatform, fetchFromGitHub, - diffutils, - gd, - pkg-config, }: -stdenv.mkDerivation (finalAttrs: { +rustPlatform.buildRustPackage (finalAttrs: { pname = "s2png"; - version = "0.7.2"; + version = "1.0.0"; + + __structuredAttrs = true; src = fetchFromGitHub { owner = "dbohdan"; repo = "s2png"; rev = "v${finalAttrs.version}"; - sha256 = "0y3crfm0jqprgxamlly713cka2x1bp6z63p1lw9wh4wc37kpira6"; + sha256 = "sha256-BRVubGy5GpP0zhJ26DXBwlqflfZTnLVfhQk5qFj29x4="; }; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - diffutils - gd - ]; - installFlags = [ - "prefix=" - "DESTDIR=$(out)" - ]; + cargoHash = "sha256-aka4q3Wh0s1iaIUJkPuL/2FnJH5KdbpOOWLIAWirBFk="; meta = { homepage = "https://github.com/dbohdan/s2png/"; description = "Store any data in PNG images"; license = lib.licenses.gpl2Plus; - maintainers = [ lib.maintainers.dbohdan ]; + maintainers = with lib.maintainers; [ + dbohdan + kybe236 + ]; platforms = lib.platforms.unix; mainProgram = "s2png"; };