504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
39 lines
815 B
Nix
39 lines
815 B
Nix
{ 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;
|
|
};
|
|
}
|