libjpeg: format with nixfmt, change sha56 -> hash

This commit is contained in:
Sigmanificient 2024-07-14 06:22:54 +02:00
parent 927918a291
commit f606fe4fef

View File

@ -1,6 +1,9 @@
{ lib, stdenv, fetchurl
, testers
, static ? false
{
lib,
stdenv,
fetchurl,
testers,
static ? false,
}:
stdenv.mkDerivation (finalAttrs: {
@ -9,12 +12,17 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchurl {
url = "http://www.ijg.org/files/jpegsrc.v${finalAttrs.version}.tar.gz";
sha256 = "sha256-BHBcEQyyRpyqeftx+6PXv4NJFHBulkGkWJSFwfgyVls=";
hash = "sha256-BHBcEQyyRpyqeftx+6PXv4NJFHBulkGkWJSFwfgyVls=";
};
configureFlags = lib.optional static "--enable-static --disable-shared";
outputs = [ "bin" "dev" "out" "man" ];
outputs = [
"bin"
"dev"
"out"
"man"
];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;