nixpkgs/pkgs/tools/video/lux/default.nix

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

34 lines
848 B
Nix
Raw Normal View History

2022-09-24 03:42:43 +02:00
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, ffmpeg }:
buildGoModule rec {
pname = "lux";
2023-07-10 01:55:47 +02:00
version = "0.19.0";
2022-09-24 03:42:43 +02:00
src = fetchFromGitHub {
owner = "iawia002";
repo = "lux";
rev = "v${version}";
2023-07-10 01:55:47 +02:00
sha256 = "sha256-klm1985qBErFfYIWPjr1/n6nYr/jA9dbrDMfw4bf1tM=";
2022-09-24 03:42:43 +02:00
};
nativeBuildInputs = [ makeWrapper ];
2023-04-23 16:14:33 +02:00
vendorHash = "sha256-7wgGJYiIsVTRSuSb4a9LgYCkkayGhNMKqcIKoDxMuAM=";
2022-09-24 03:42:43 +02:00
ldflags = [ "-s" "-w" ];
postInstall = ''
wrapProgram $out/bin/lux \
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
'';
doCheck = false;
meta = with lib; {
description = "Fast and simple video download library and CLI tool written in Go";
homepage = "https://github.com/iawia002/lux";
changelog = "https://github.com/iawia002/lux/releases/tag/v${version}";
license = licenses.mit;
2023-04-05 02:29:30 +02:00
maintainers = [];
2022-09-24 03:42:43 +02:00
};
}