Files
nixpkgs/pkgs/by-name/lu/lux/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
940 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
makeWrapper,
ffmpeg,
}:
buildGoModule rec {
pname = "lux";
version = "0.24.1";
src = fetchFromGitHub {
owner = "iawia002";
repo = "lux";
rev = "v${version}";
hash = "sha256-3d8EQ7GzufZvMfjHbVMdpuGE+vPdSir4diSnB29v0sw=";
};
nativeBuildInputs = [ makeWrapper ];
vendorHash = "sha256-RCZzcycUKqJgwBZZQBD1UEZCZCitpiqNpD51oKm6IvI=";
ldflags = [
"-s"
"-w"
"-X github.com/iawia002/lux/app.version=v${version}"
];
postInstall = ''
wrapProgram $out/bin/lux \
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
'';
doCheck = false; # require network
meta = {
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 = lib.licenses.mit;
mainProgram = "lux";
};
}