diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/video/lux/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/video/lux/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/video/lux/default.nix b/nixpkgs/pkgs/tools/video/lux/default.nix new file mode 100644 index 000000000000..128a8a925758 --- /dev/null +++ b/nixpkgs/pkgs/tools/video/lux/default.nix @@ -0,0 +1,33 @@ +{ lib, buildGoModule, fetchFromGitHub, makeWrapper, ffmpeg }: + +buildGoModule rec { + pname = "lux"; + version = "0.18.0"; + src = fetchFromGitHub { + owner = "iawia002"; + repo = "lux"; + rev = "v${version}"; + sha256 = "sha256-A3DDKpoaZlDUpafAGs5zCknhTeCuwMPnyBHtxke0Bi8="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + vendorHash = "sha256-7wgGJYiIsVTRSuSb4a9LgYCkkayGhNMKqcIKoDxMuAM="; + + 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; + maintainers = []; + }; +} |