titanium-alloy: use buildNpmPackage

This commit is contained in:
Robert Schütz 2023-08-17 13:18:47 -07:00
parent ac3d200056
commit d2e93acf32
6 changed files with 34 additions and 154 deletions

View File

@ -0,0 +1,29 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "alloy";
version = "2.0.2";
src = fetchFromGitHub {
owner = "tidev";
repo = "alloy";
rev = version;
hash = "sha256-s1hAbbUy7k/GacBIk8OMD48/1IUcRcpV3LnrCCZim1A=";
};
npmDepsHash = "sha256-YNyFrO6+oFluyk3TlUf/0vdHrgTJ3l5DN801wnpBa6s=";
dontNpmBuild = true;
meta = {
changelog = "https://github.com/tidev/alloy/blob/${src.rev}/CHANGELOG.md";
description = "MVC framework for the Appcelerator Titanium SDK";
homepage = "https://github.com/tidev/alloy";
license = lib.licenses.asl20;
mainProgram = "alloy";
maintainers = with lib.maintainers; [ ];
};
}

View File

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

View File

@ -46,6 +46,7 @@ mapAliases {
"@maizzle/cli" = pkgs.maizzle; # added 2023-08-17
"@medable/mdctl-cli" = throw "@medable/mdctl-cli was removed because it was broken"; # added 2023-08-21
"@nestjs/cli" = pkgs.nest-cli; # Added 2023-05-06
alloy = pkgs.titanium-alloy; # added 2023-08-17
antennas = pkgs.antennas; # added 2023-07-30
inherit (pkgs) asar; # added 2023-08-26
balanceofsatoshis = pkgs.balanceofsatoshis; # added 2023-07-31

View File

@ -25,7 +25,6 @@
, {"@webassemblyjs/wasm-text-gen": "1.11.1"}
, {"@webassemblyjs/wast-refmt": "1.11.1"}
, "alex"
, "alloy"
, "audiosprite"
, "autoprefixer"
, "auto-changelog"

View File

@ -75436,158 +75436,6 @@ in
bypassCache = true;
reconstructLock = true;
};
alloy = nodeEnv.buildNodePackage {
name = "alloy";
packageName = "alloy";
version = "2.0.2";
src = fetchurl {
url = "https://registry.npmjs.org/alloy/-/alloy-2.0.2.tgz";
sha512 = "FhZLGIKAewqzsJ50H44NU/PTAW2vt00M8dMkO6BFgCH7Z925+8bfcQ9PCBAufynDQXrAR6h7Kd9Im4YXyizbIA==";
};
dependencies = [
sources."@ampproject/remapping-2.2.1"
sources."@babel/code-frame-7.22.10"
sources."@babel/compat-data-7.22.9"
sources."@babel/core-7.22.10"
sources."@babel/generator-7.22.10"
sources."@babel/helper-compilation-targets-7.22.10"
sources."@babel/helper-environment-visitor-7.22.5"
sources."@babel/helper-function-name-7.22.5"
sources."@babel/helper-hoist-variables-7.22.5"
sources."@babel/helper-module-imports-7.22.5"
sources."@babel/helper-module-transforms-7.22.9"
sources."@babel/helper-simple-access-7.22.5"
sources."@babel/helper-split-export-declaration-7.22.6"
sources."@babel/helper-string-parser-7.22.5"
sources."@babel/helper-validator-identifier-7.22.5"
sources."@babel/helper-validator-option-7.22.5"
sources."@babel/helpers-7.22.10"
sources."@babel/highlight-7.22.10"
sources."@babel/parser-7.22.10"
sources."@babel/template-7.22.5"
sources."@babel/traverse-7.22.10"
sources."@babel/types-7.22.10"
sources."@jridgewell/gen-mapping-0.3.3"
sources."@jridgewell/resolve-uri-3.1.1"
sources."@jridgewell/set-array-1.1.2"
sources."@jridgewell/sourcemap-codec-1.4.15"
sources."@jridgewell/trace-mapping-0.3.19"
sources."@xmldom/xmldom-0.8.10"
sources."JSV-4.0.2"
sources."ansi-styles-3.2.1"
sources."array-unique-0.3.2"
sources."async-3.2.4"
sources."balanced-match-1.0.2"
sources."brace-expansion-2.0.1"
sources."browserslist-4.21.10"
sources."caniuse-lite-1.0.30001522"
sources."chalk-2.4.2"
sources."color-convert-1.9.3"
sources."color-name-1.1.3"
sources."colors-1.4.0"
sources."commander-8.3.0"
sources."concat-map-0.0.1"
sources."convert-source-map-1.9.0"
sources."debug-4.3.4"
sources."ejs-3.1.6"
sources."electron-to-chromium-1.4.499"
sources."ensure-posix-path-1.1.1"
sources."escalade-3.1.1"
sources."escape-string-regexp-1.0.5"
(sources."filelist-1.0.4" // {
dependencies = [
sources."minimatch-5.1.6"
];
})
sources."fs-extra-5.0.0"
sources."function-bind-1.1.1"
sources."gensync-1.0.0-beta.2"
(sources."global-modules-0.2.3" // {
dependencies = [
sources."is-windows-0.2.0"
];
})
sources."global-paths-1.0.0"
(sources."global-prefix-0.1.5" // {
dependencies = [
sources."is-windows-0.2.0"
];
})
sources."globals-11.12.0"
sources."graceful-fs-4.2.11"
sources."has-1.0.3"
sources."has-color-0.1.7"
sources."has-flag-3.0.0"
sources."homedir-polyfill-1.0.3"
sources."ini-1.3.8"
sources."is-3.3.0"
sources."is-core-module-2.13.0"
sources."is-windows-1.0.2"
sources."isexe-2.0.0"
(sources."jake-10.8.7" // {
dependencies = [
sources."ansi-styles-4.3.0"
sources."chalk-4.1.2"
sources."color-convert-2.0.1"
sources."color-name-1.1.4"
sources."has-flag-4.0.0"
sources."supports-color-7.2.0"
];
})
sources."js-tokens-4.0.0"
sources."jsesc-2.5.2"
sources."json5-2.2.3"
sources."jsonfile-4.0.0"
sources."jsonlint-1.6.3"
sources."lodash-4.17.21"
sources."lru-cache-5.1.1"
sources."matcher-collection-1.1.2"
(sources."minimatch-3.1.2" // {
dependencies = [
sources."brace-expansion-1.1.11"
];
})
sources."moment-2.29.1"
sources."ms-2.1.2"
sources."node-releases-2.0.13"
sources."node.extend-2.0.2"
(sources."nomnom-1.8.1" // {
dependencies = [
sources."ansi-styles-1.0.0"
sources."chalk-0.4.0"
];
})
sources."parse-passwd-1.0.0"
sources."path-parse-1.0.7"
sources."picocolors-1.0.0"
sources."pkginfo-0.4.1"
sources."resolve-1.22.4"
sources."sax-0.5.8"
sources."semver-6.3.1"
sources."source-map-0.7.4"
sources."strip-ansi-0.1.1"
sources."supports-color-5.5.0"
sources."supports-preserve-symlinks-flag-1.0.0"
sources."to-fast-properties-2.0.0"
sources."underscore-1.6.0"
sources."universalify-0.1.2"
sources."update-browserslist-db-1.0.11"
sources."walk-sync-0.3.4"
sources."which-1.3.1"
sources."xml2js-0.2.8"
sources."xml2tss-0.0.5"
sources."yallist-3.1.1"
];
buildInputs = globalBuildInputs;
meta = {
description = "TiDev Titanium MVC Framework";
homepage = "https://github.com/tidev/alloy#readme";
license = "Apache-2.0";
};
production = true;
bypassCache = true;
reconstructLock = true;
};
audiosprite = nodeEnv.buildNodePackage {
name = "audiosprite";
packageName = "audiosprite";

View File

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