lux: 0.19.0 -> 0.21.0
This commit is contained in:
parent
059348710f
commit
16c2c0819b
@ -1,33 +1,43 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, ffmpeg }:
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, makeWrapper
|
||||||
|
, ffmpeg
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "lux";
|
pname = "lux";
|
||||||
version = "0.19.0";
|
version = "0.21.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "iawia002";
|
owner = "iawia002";
|
||||||
repo = "lux";
|
repo = "lux";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-klm1985qBErFfYIWPjr1/n6nYr/jA9dbrDMfw4bf1tM=";
|
hash = "sha256-LCYWfF7O8wByCJNDi2BZsI7EU6wJqhcr/sbNOoQ2Src=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
vendorHash = "sha256-7wgGJYiIsVTRSuSb4a9LgYCkkayGhNMKqcIKoDxMuAM=";
|
vendorHash = "sha256-wW/jrsurmyLcDX+58lp0M+snJ2avEs0HciNZ8BgIqrI=";
|
||||||
|
|
||||||
ldflags = [ "-s" "-w" ];
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X github.com/iawia002/lux/app.version=v${version}"
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/lux \
|
wrapProgram $out/bin/lux \
|
||||||
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
|
--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false; # require network
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Fast and simple video download library and CLI tool written in Go";
|
description = "Fast and simple video download library and CLI tool written in Go";
|
||||||
homepage = "https://github.com/iawia002/lux";
|
homepage = "https://github.com/iawia002/lux";
|
||||||
changelog = "https://github.com/iawia002/lux/releases/tag/v${version}";
|
changelog = "https://github.com/iawia002/lux/releases/tag/v${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [];
|
maintainers = with maintainers; [ galaxy ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user