ani-cli: avoid rec
This commit is contained in:
@@ -25,19 +25,19 @@ let
|
||||
players = lib.optional withMpv mpv ++ lib.optional withVlc vlc ++ lib.optional withIina iina;
|
||||
in
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "ani-cli";
|
||||
version = "4.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pystardust";
|
||||
repo = "ani-cli";
|
||||
rev = "v${version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-7zuepWTtrFp9RW3zTSjPzyJ9e+09PdKgwcnV+DqPEUY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
runtimeDependencies = [
|
||||
runtimeInputs = [
|
||||
gnugrep
|
||||
gnused
|
||||
curl
|
||||
@@ -52,7 +52,7 @@ stdenvNoCC.mkDerivation rec {
|
||||
install -Dm755 ani-cli $out/bin/ani-cli
|
||||
|
||||
wrapProgram $out/bin/ani-cli \
|
||||
--prefix PATH : ${lib.makeBinPath runtimeDependencies} \
|
||||
--prefix PATH : ${lib.makeBinPath finalAttrs.runtimeInputs} \
|
||||
${lib.optionalString (builtins.length players > 0) "--suffix PATH : ${lib.makeBinPath players}"}
|
||||
|
||||
runHook postInstall
|
||||
@@ -69,4 +69,4 @@ stdenvNoCC.mkDerivation rec {
|
||||
platforms = lib.platforms.unix;
|
||||
mainProgram = "ani-cli";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user