Merge pull request #266595 from snf1k/gifgen

gifgen: init at 1.2.0
This commit is contained in:
Peder Bergebakken Sundt 2023-12-02 15:12:45 +01:00 committed by GitHub
commit d6f6997e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,39 @@
{ lib
, stdenv
, fetchFromGitHub
, ffmpeg
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "gifgen";
version = "1.2.0";
src = fetchFromGitHub {
owner = "lukechilds";
repo = "gifgen";
rev = version;
hash = "sha256-ni9RL4LyMejmu8vm5HC8WSTqAPQMBQNRDOZ4ZfvrkSU=";
};
nativeBuildInputs = [
makeWrapper
];
installPhase = ''
runHook preInstall
install -Dm755 gifgen $out/bin/gifgen
wrapProgram $out/bin/gifgen \
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
runHook postInstall
'';
meta = with lib; {
description = "Simple high quality GIF encoding";
homepage = "https://github.com/lukechilds/gifgen";
license = licenses.mit;
maintainers = with maintainers; [ snowflake ];
mainProgram = "gifgen";
platforms = platforms.all;
};
}