Files
nixpkgs/pkgs/by-name/ca/catimg/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

41 lines
943 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation rec {
pname = "catimg";
version = "2.7.0";
src = fetchFromGitHub {
owner = "posva";
repo = "catimg";
rev = version;
sha256 = "0a2dswbv4xddb2l2d55hc43lzvjwrjs5z9am7v6i0p0mi2fmc89s";
};
nativeBuildInputs = [ cmake ];
# Fix build with CMake 4: https://github.com/NixOS/nixpkgs/issues/449801
# CMake 4 removed support for CMake < 3.5, so we set the minimum policy version
cmakeFlags = [
(lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.5")
];
env = lib.optionalAttrs (stdenv.hostPlatform.libc == "glibc") {
CFLAGS = "-D_DEFAULT_SOURCE";
};
meta = with lib; {
license = licenses.mit;
homepage = "https://github.com/posva/catimg";
description = "Insanely fast image printing in your terminal";
maintainers = with maintainers; [ ryantm ];
platforms = platforms.unix;
mainProgram = "catimg";
};
}