titanium: use buildNpmPackage

This commit is contained in:
Robert Schütz 2023-08-17 13:31:45 -07:00
parent d2e93acf32
commit 6e701c43e2
6 changed files with 33 additions and 157 deletions

View File

@ -0,0 +1,29 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "titanium";
version = "6.1.1";
src = fetchFromGitHub {
owner = "tidev";
repo = "titanium-cli";
rev = "v${version}";
hash = "sha256-eJHf4vbapCaIVk0Xc0sml14jkFCsS/Gv7ftaFakB5rI=";
};
npmDepsHash = "sha256-60r+zqUCSDvQgrjg5SGfZiv87AoGx1XcnbW1ki1sbCM=";
dontNpmBuild = true;
meta = {
changelog = "https://github.com/tidev/titanium-cli/blob/${src.rev}/CHANGELOG.md";
description = "Command Line Tool for creating and building Titanium Mobile applications and modules";
homepage = "https://github.com/tidev/titanium-cli";
license = lib.licenses.asl20;
mainProgram = "titanium";
maintainers = with lib.maintainers; [ ];
};
}

View File

@ -12,9 +12,8 @@ rec {
};
buildApp = import ./build-app.nix {
inherit (pkgs) stdenv lib python which file jdk nodejs;
inherit (pkgs) stdenv lib python which file jdk nodejs titanium;
alloy = pkgs.titanium-alloy;
inherit (pkgs.nodePackages) titanium;
inherit (androidenv) composeAndroidPackages;
inherit (xcodeenv) composeXcodeWrapper;
inherit titaniumsdk;

View File

@ -93,6 +93,7 @@ mapAliases {
ssb-server = throw "ssb-server was removed because it was broken"; # added 2023-08-21
stf = throw "stf was removed because it was broken"; # added 2023-08-21
thelounge = pkgs.thelounge; # Added 2023-05-22
inherit (pkgs) titanium; # added 2023-08-17
triton = pkgs.triton; # Added 2023-05-06
typescript = pkgs.typescript; # Added 2023-06-21
inherit (pkgs) ungit; # added 2023-08-20

View File

@ -317,7 +317,6 @@
, "thelounge-theme-zenburn-sourcecodepro"
, "three"
, "tiddlywiki"
, "titanium"
, "tsun"
, "ts-node"
, "ttf2eot"

View File

@ -116483,160 +116483,6 @@ in
bypassCache = true;
reconstructLock = true;
};
titanium = nodeEnv.buildNodePackage {
name = "titanium";
packageName = "titanium";
version = "6.1.1";
src = fetchurl {
url = "https://registry.npmjs.org/titanium/-/titanium-6.1.1.tgz";
sha512 = "jz1pZ1jDB72H63SaHYUYLbiBBVmaGPIprSKQr2rbuoNPNasp9EerMouqSUiVdnvaKElpnW/sWiMmPs4XINmo0w==";
};
dependencies = [
sources."@sindresorhus/is-4.6.0"
sources."@szmarczak/http-timer-4.0.6"
sources."@types/cacheable-request-6.0.3"
sources."@types/http-cache-semantics-4.0.1"
sources."@types/keyv-3.1.4"
sources."@types/node-20.5.3"
sources."@types/responselike-1.0.0"
sources."@xmldom/xmldom-0.8.10"
sources."ajv-6.12.6"
sources."asn1-0.2.6"
sources."assert-plus-1.0.0"
sources."async-3.2.4"
sources."asynckit-0.4.0"
sources."at-least-node-1.0.0"
sources."aws-sign2-0.7.0"
sources."aws4-1.12.0"
sources."balanced-match-1.0.2"
sources."bcrypt-pbkdf-1.0.2"
sources."brace-expansion-1.1.11"
sources."buffer-crc32-0.2.13"
sources."cacheable-lookup-5.0.4"
sources."cacheable-request-7.0.4"
sources."caseless-0.12.0"
sources."clone-response-1.0.3"
sources."colors-1.4.0"
sources."combined-stream-1.0.8"
sources."concat-map-0.0.1"
sources."core-util-is-1.0.2"
sources."cycle-1.0.3"
sources."dashdash-1.14.1"
(sources."decompress-response-6.0.0" // {
dependencies = [
sources."mimic-response-3.1.0"
];
})
sources."defer-to-connect-2.0.1"
sources."delayed-stream-1.0.0"
sources."ecc-jsbn-0.1.2"
sources."end-of-stream-1.4.4"
sources."extend-3.0.2"
sources."extsprintf-1.3.0"
sources."eyes-0.1.8"
sources."fast-deep-equal-3.1.3"
sources."fast-json-stable-stringify-2.1.0"
sources."fd-slicer-1.1.0"
(sources."fields-0.1.24" // {
dependencies = [
sources."colors-0.6.2"
];
})
sources."forever-agent-0.6.1"
sources."form-data-2.3.3"
sources."fs-extra-9.1.0"
sources."fs.realpath-1.0.0"
sources."get-stream-5.2.0"
sources."getpass-0.1.7"
sources."glob-7.2.3"
sources."got-11.8.6"
sources."graceful-fs-4.2.11"
sources."har-schema-2.0.0"
sources."har-validator-5.1.5"
sources."http-cache-semantics-4.1.1"
sources."http-signature-1.2.0"
sources."http2-wrapper-1.0.3"
sources."humanize-0.0.9"
sources."inflight-1.0.6"
sources."inherits-2.0.4"
sources."is-typedarray-1.0.0"
sources."isstream-0.1.2"
sources."jsbn-0.1.1"
sources."json-buffer-3.0.1"
sources."json-schema-0.4.0"
sources."json-schema-traverse-0.4.1"
sources."json-stringify-safe-5.0.1"
sources."jsonfile-6.1.0"
sources."jsprim-1.4.2"
sources."keypress-0.2.1"
sources."keyv-4.5.3"
sources."lowercase-keys-2.0.0"
sources."lru-cache-6.0.0"
sources."mime-db-1.52.0"
sources."mime-types-2.1.35"
sources."mimic-response-1.0.1"
sources."minimatch-3.1.2"
sources."minimist-1.2.8"
sources."mkdirp-0.5.6"
sources."node-appc-1.1.6"
sources."normalize-url-6.1.0"
sources."oauth-sign-0.9.0"
sources."once-1.4.0"
sources."p-cancelable-2.1.1"
sources."path-is-absolute-1.0.1"
sources."pend-1.2.0"
sources."performance-now-2.1.0"
sources."psl-1.9.0"
sources."pump-3.0.0"
sources."punycode-2.3.0"
sources."qs-6.5.3"
sources."quick-lru-5.1.1"
(sources."request-2.88.2" // {
dependencies = [
sources."uuid-3.4.0"
];
})
sources."resolve-alpn-1.2.1"
sources."responselike-2.0.1"
sources."rimraf-2.6.3"
sources."safe-buffer-5.2.1"
sources."safer-buffer-2.1.2"
sources."semver-7.3.8"
sources."sprintf-0.1.5"
sources."sshpk-1.17.0"
sources."stack-trace-0.0.10"
sources."temp-0.9.4"
(sources."tmp-0.2.1" // {
dependencies = [
sources."rimraf-3.0.2"
];
})
sources."tough-cookie-2.5.0"
sources."tunnel-agent-0.6.0"
sources."tweetnacl-0.14.5"
sources."universalify-2.0.0"
sources."uri-js-4.4.1"
sources."uuid-9.0.0"
sources."verror-1.10.0"
(sources."winston-2.4.6" // {
dependencies = [
sources."colors-1.0.3"
];
})
sources."wrappy-1.0.2"
sources."yallist-4.0.0"
sources."yauzl-2.10.0"
];
buildInputs = globalBuildInputs;
meta = {
description = "TiDev Titanium Command line";
homepage = "https://github.com/tidev/titanium#readme";
license = "Apache-2.0";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
tsun = nodeEnv.buildNodePackage {
name = "tsun";
packageName = "tsun";

View File

@ -4112,6 +4112,8 @@ with pkgs;
supergfxctl = callPackage ../applications/system/supergfxctl { };
titanium = callPackage ../development/mobile/titanium { };
titanium-alloy = callPackage ../development/mobile/titanium-alloy { };
titaniumenv = callPackage ../development/mobile/titaniumenv { };