mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00
rqbit: 6.0.0 -> 7.0.1
This commit is contained in:
parent
6dbbd5a262
commit
eb24f0d65d
3310
pkgs/by-name/rq/rqbit/Cargo.lock
generated
3310
pkgs/by-name/rq/rqbit/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,27 +1,70 @@
|
|||||||
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, darwin }:
|
{
|
||||||
|
lib,
|
||||||
rustPlatform.buildRustPackage rec {
|
stdenv,
|
||||||
|
rustPlatform,
|
||||||
|
fetchFromGitHub,
|
||||||
|
pkg-config,
|
||||||
|
openssl,
|
||||||
|
darwin,
|
||||||
|
buildNpmPackage,
|
||||||
|
nodejs_20,
|
||||||
|
}:
|
||||||
|
let
|
||||||
pname = "rqbit";
|
pname = "rqbit";
|
||||||
version = "6.0.0";
|
|
||||||
|
version = "7.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ikatson";
|
owner = "ikatson";
|
||||||
repo = "rqbit";
|
repo = "rqbit";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-YOjFCX1Ckk0M2QOGoYKoY80TFnHs00aVJJAWv2RIp4A=";
|
hash = "sha256-Lt3HxK8fB1Xn2422wGkJ90muJjZ7r9ZHngGD/2tkaMM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoLock = {
|
rqbit-webui = buildNpmPackage {
|
||||||
lockFile = ./Cargo.lock;
|
pname = "rqbit-webui";
|
||||||
outputHashes = {
|
|
||||||
"network-interface-1.1.1" = "sha256-9fWdR5nr73oFP9FzHhDsbA4ifQf3LkzBygspxI9/ufs=";
|
nodejs = nodejs_20;
|
||||||
};
|
|
||||||
|
inherit version src;
|
||||||
|
|
||||||
|
sourceRoot = "${src.name}/crates/librqbit/webui";
|
||||||
|
|
||||||
|
npmDepsHash = "sha256-VYPZXZx9rKLKZm5+d2wSVkoPLCQCffaeZVSi7mKRH/M=";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/dist
|
||||||
|
cp -r dist/** $out/dist
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
inherit pname version src;
|
||||||
|
|
||||||
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
|
cargoHash = "sha256-esDUzzVm5J8fKftBfk5StJzN1YzLa1p0t7BsoxzrowI=";
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
|
nativeBuildInputs = lib.optionals stdenv.isLinux [
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs =
|
||||||
|
lib.optionals stdenv.isLinux [ openssl ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
mkdir -p crates/librqbit/webui/dist
|
||||||
|
cp -R ${rqbit-webui}/dist/** crates/librqbit/webui/dist
|
||||||
|
'';
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# This script fascilitates the build of the webui,
|
||||||
|
# we've already built that
|
||||||
|
rm crates/librqbit/build.rs
|
||||||
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
@ -30,7 +73,10 @@ rustPlatform.buildRustPackage rec {
|
|||||||
homepage = "https://github.com/ikatson/rqbit";
|
homepage = "https://github.com/ikatson/rqbit";
|
||||||
changelog = "https://github.com/ikatson/rqbit/releases/tag/v${version}";
|
changelog = "https://github.com/ikatson/rqbit/releases/tag/v${version}";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ cafkafk toasteruwu ];
|
maintainers = with maintainers; [
|
||||||
|
cafkafk
|
||||||
|
toasteruwu
|
||||||
|
];
|
||||||
mainProgram = "rqbit";
|
mainProgram = "rqbit";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user