nixpkgs/pkgs/by-name/lu/lux/package.nix

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

45 lines
987 B
Nix
Raw Normal View History

2023-10-30 09:21:54 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, makeWrapper
, ffmpeg
}:
2022-09-24 02:42:43 +01:00
buildGoModule rec {
pname = "lux";
2024-05-06 09:41:24 +01:00
version = "0.24.1";
2023-10-30 09:21:54 +00:00
2022-09-24 02:42:43 +01:00
src = fetchFromGitHub {
owner = "iawia002";
repo = "lux";
rev = "v${version}";
2024-05-06 09:41:24 +01:00
hash = "sha256-3d8EQ7GzufZvMfjHbVMdpuGE+vPdSir4diSnB29v0sw=";
2022-09-24 02:42:43 +01:00
};
nativeBuildInputs = [ makeWrapper ];
2024-04-22 05:15:38 +01:00
vendorHash = "sha256-RCZzcycUKqJgwBZZQBD1UEZCZCitpiqNpD51oKm6IvI=";
2022-09-24 02:42:43 +01:00
2023-10-30 09:21:54 +00:00
ldflags = [
"-s"
"-w"
"-X github.com/iawia002/lux/app.version=v${version}"
];
2022-09-24 02:42:43 +01:00
postInstall = ''
wrapProgram $out/bin/lux \
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
'';
2023-10-30 09:21:54 +00:00
doCheck = false; # require network
2022-09-24 02:42:43 +01:00
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-10-30 09:21:54 +00:00
maintainers = with maintainers; [ galaxy ];
2023-11-23 02:51:17 +00:00
mainProgram = "lux";
2022-09-24 02:42:43 +01:00
};
}