nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 ffmpeg,
6 makeWrapper,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "gifgen";
11 version = "1.2.0";
12
13 src = fetchFromGitHub {
14 owner = "lukechilds";
15 repo = "gifgen";
16 rev = version;
17 hash = "sha256-ni9RL4LyMejmu8vm5HC8WSTqAPQMBQNRDOZ4ZfvrkSU=";
18 };
19
20 nativeBuildInputs = [
21 makeWrapper
22 ];
23
24 installPhase = ''
25 runHook preInstall
26 install -Dm755 gifgen $out/bin/gifgen
27 wrapProgram $out/bin/gifgen \
28 --prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
29 runHook postInstall
30 '';
31
32 meta = with lib; {
33 description = "Simple high quality GIF encoding";
34 homepage = "https://github.com/lukechilds/gifgen";
35 license = licenses.mit;
36 maintainers = with maintainers; [ ];
37 mainProgram = "gifgen";
38 platforms = platforms.all;
39 };
40}