Unverified Commit a3a1c578 authored by Jonathan del Strother's avatar Jonathan del Strother
Browse files

pngout: 20200115 -> 20230322

This bumps the nix `version` of the package to 20230322, although the
linux binary remains unchanged. The 20230322 release just adds aarch64-darwin
support to the mac binary.
parent 38818791
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -7,6 +7,9 @@

let
  platforms = {
    aarch64-darwin = {
      folder = ".";
    };
    aarch64-linux = {
      folder = "aarch64";
      ld-linux = "ld-linux-aarch64.so.1";
@@ -33,22 +36,22 @@ let
  download =
    if stdenv.hostPlatform.isDarwin then
      {
        extension = "macos.zip";
        hash = "sha256-MnL6lH7q/BrACG4fFJNfnvoh0JClVeaJIlX+XIj2aG4=";
        suffix = "20230322-mac.zip";
        hash = "sha256-Lj63k0UgYECuOg0NDs/prQHZL+UAK4oWdqZWMqVoQOE=";
      }
    else
      {
        extension = "linux.tar.gz";
        suffix = "20200115-linux.tar.gz";
        hash = "sha256-rDi7pvDeKQM96GZTjDr6ZDQTGbaVu+OI77xf2egw6Sg=";
      };
in
stdenv.mkDerivation rec {
  pname = "pngout";
  version = "20200115";
  version = "20230322";

  src = fetchurl {
    inherit (download) hash;
    url = "http://static.jonof.id.au/dl/kenutils/pngout-${version}-${download.extension}";
    url = "https://www.jonof.id.au/files/kenutils/pngout-${download.suffix}";
  };

  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ unzip ];