mirror of
https://github.com/baairon/torlink.git
synced 2026-07-08 18:28:22 +02:00
chore: update nix package 1.1.1 -> 1.2.0 (#41)
This commit is contained in:
+9
-8
@@ -11,20 +11,21 @@
|
|||||||
|
|
||||||
buildNpmPackage (finalAttrs: {
|
buildNpmPackage (finalAttrs: {
|
||||||
pname = "torlink";
|
pname = "torlink";
|
||||||
version = "1.1.1-unstable";
|
version = "1.2.0";
|
||||||
__structedAttrs = true;
|
__structuredAttrs = true;
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "baairon";
|
owner = "baairon";
|
||||||
repo = "torlink";
|
repo = "torlink";
|
||||||
rev = "3c5b5597d9ad212b6dab50af5a6e614cdfb82743";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-f4olyyE2QqvVyakV5LvQq2Rm01fNeVox1Mk0VOat/nk=";
|
hash = "sha256-nspTUJE9hPxHHt3SuYzZlsvPaUKq/UEwvdKb+/dn3lY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nodejs = nodejs_22;
|
nodejs = nodejs_22;
|
||||||
npmDepsHash = "sha256-7CCecywWleUE7wobdzwWb4Rff0LmrlHcON1iPeiiFnw=";
|
npmDepsHash = "sha256-7CCecywWleUE7wobdzwWb4Rff0LmrlHcON1iPeiiFnw=";
|
||||||
npmFlags = [ "--ignore-scripts" ]; # ignore scripts for ip-set broken pre-install
|
# ignore-scripts for ip-set broken preinstall
|
||||||
|
npmFlags = [ "--ignore-scripts" ];
|
||||||
|
|
||||||
# node-datachannel binary tarball
|
# node-datachannel binary tarball
|
||||||
nodeDatachannelPrebuilt = fetchurl {
|
nodeDatachannelPrebuilt = fetchurl {
|
||||||
@@ -34,15 +35,14 @@ buildNpmPackage (finalAttrs: {
|
|||||||
|
|
||||||
# replicate postbuild from package.json
|
# replicate postbuild from package.json
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
cp scripts/cli-entry.cjs dist/cli.cjs
|
node scripts/postbuild.cjs
|
||||||
chmod +x dist/cli.cjs
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# extract node-datachannel tarball
|
# extract node-datachannel tarball
|
||||||
|
# add wl-copy and xclip to nix readeable path
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
tar -xzf ${finalAttrs.nodeDatachannelPrebuilt} \
|
tar -xzf ${finalAttrs.nodeDatachannelPrebuilt} \
|
||||||
-C $out/lib/node_modules/torlnk/node_modules/node-datachannel
|
-C $out/lib/node_modules/torlnk/node_modules/node-datachannel
|
||||||
# add wl-copy and xclip to nix readeable path
|
|
||||||
wrapProgram $out/bin/torlnk \
|
wrapProgram $out/bin/torlnk \
|
||||||
--prefix PATH : ${
|
--prefix PATH : ${
|
||||||
lib.makeBinPath [
|
lib.makeBinPath [
|
||||||
@@ -55,6 +55,7 @@ buildNpmPackage (finalAttrs: {
|
|||||||
meta = {
|
meta = {
|
||||||
description = "Torlink is a torrent finder that lives in your terminal, with zero setup and nothing to configure.";
|
description = "Torlink is a torrent finder that lives in your terminal, with zero setup and nothing to configure.";
|
||||||
homepage = "https://github.com/baairon/torlink";
|
homepage = "https://github.com/baairon/torlink";
|
||||||
|
changelog = "https://github.com/baairon/torlink/releases/tag/v${finalAttrs.src.tag}";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ ghastrum ];
|
maintainers = with lib.maintainers; [ ghastrum ];
|
||||||
mainProgram = "torlnk";
|
mainProgram = "torlnk";
|
||||||
|
|||||||
Reference in New Issue
Block a user