fbv: 1.0b -> 1.0c

(cherry picked from commit da06e88307)
This commit is contained in:
Peter H. Hoeg
2025-06-15 21:41:08 +02:00
committed by Peter Hoeg
parent 4bed3c8ef7
commit cd524a1429

View File

@@ -1,39 +1,28 @@
{
lib,
stdenv,
fetchurl,
fetchpatch,
fetchFromGitHub,
getopt,
libjpeg,
libpng12,
giflib,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "fbv";
version = "1.0b";
version = "1.0c";
src = fetchurl {
url = "http://s-tech.elsat.net.pl/fbv/fbv-${version}.tar.gz";
sha256 = "0g5b550vk11l639y8p5sx1v1i6ihgqk0x1hd0ri1bc2yzpdbjmcv";
src = fetchFromGitHub {
owner = "jstkdng";
repo = "fbv";
tag = finalAttrs.version;
hash = "sha256-4tAIFklKsx2uI+FQjq9vdolYm6d6YWugioG6k2ZUMrs=";
};
patches = [
(fetchpatch {
url = "https://raw.githubusercontent.com/void-linux/void-packages/4a5bfe522ea5afd8203e804dc6a642d0871cd6dd/srcpkgs/fbv/patches/giflib-5.1.patch";
sha256 = "00q1zcn92yvvyij68bnq0m1sr3a411w914f4nyp6mpz0j5xc6dc7";
})
];
patchFlags = [ "-p0" ];
buildInputs = [
getopt
libjpeg
libpng12
giflib
];
makeFlags = [ "LDFLAGS=-lgif" ];
enableParallelBuilding = true;
@@ -41,11 +30,11 @@ stdenv.mkDerivation rec {
mkdir -p $out/{bin,man/man1}
'';
meta = with lib; {
meta = {
description = "View pictures on a linux framebuffer device";
homepage = "http://s-tech.elsat.net.pl/fbv/";
license = licenses.gpl2Only;
maintainers = with maintainers; [ peterhoeg ];
homepage = "https://github.com/jstkdng/fbv";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ peterhoeg ];
mainProgram = "fbv";
};
}
})