Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
812 B
Nix
Raw Permalink Normal View History

2023-11-10 14:35:56 +08:00
{
lib,
stdenv,
fetchFromGitHub,
ffmpeg,
makeWrapper,
}:
stdenv.mkDerivation rec {
pname = "gifgen";
version = "1.2.0";
src = fetchFromGitHub {
owner = "lukechilds";
repo = "gifgen";
rev = version;
2023-11-10 14:35:56 +08:00
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; [ ];
2023-11-10 14:35:56 +08:00
mainProgram = "gifgen";
platforms = platforms.all;
};
}