Silvan Mosberger 374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00

47 lines
1000 B
Nix

{
lib,
stdenv,
fetchFromGitLab,
cmake,
ninja,
quilt,
}:
stdenv.mkDerivation {
pname = "jxrlib";
version = "1.2~git20170615.f752187-5.2";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "debian-phototools-team";
repo = "jxrlib";
rev = "56e10e601a962c2e8d178e60e52cd8cf2d50f9c0";
hash = "sha256-BX4kLlFk8AfouKE9KDyG1EFFYLFB/HqYQRxFdjAe2J8=";
};
nativeBuildInputs = [
cmake
ninja
quilt
];
strictDeps = true;
env.NIX_CFLAGS_COMPILE = lib.concatStringsSep " " (
[ "-Wno-error=implicit-function-declaration" ]
++ lib.optionals stdenv.cc.isGNU [ "-Wno-error=incompatible-pointer-types" ]
);
postPatch = ''
QUILT_PATCHES=debian/patches quilt push -a
'';
meta = with lib; {
description = "Implementation of the JPEG XR image codec standard";
homepage = "https://jxrlib.codeplex.com";
license = licenses.bsd2;
platforms = platforms.unix;
maintainers = with maintainers; [ romildo ];
};
}