Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

titanium: use buildNpmPackage #249808

Merged
merged 2 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions pkgs/development/mobile/titanium-alloy/default.nix
Original file line number Diff line number Diff line change
@@ -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; [ ];
};
}
29 changes: 29 additions & 0 deletions pkgs/development/mobile/titanium/default.nix
Original file line number Diff line number Diff line change
@@ -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; [ ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/mobile/titaniumenv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ rec {
};

buildApp = import ./build-app.nix {
inherit (pkgs) stdenv lib python which file jdk nodejs;
inherit (pkgs.nodePackages) alloy titanium;
inherit (pkgs) stdenv lib python which file jdk nodejs titanium;
alloy = pkgs.titanium-alloy;
inherit (androidenv) composeAndroidPackages;
inherit (xcodeenv) composeXcodeWrapper;
inherit titaniumsdk;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -92,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
Expand Down
2 changes: 0 additions & 2 deletions pkgs/development/node-packages/node-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
, {"@webassemblyjs/wasm-text-gen": "1.11.1"}
, {"@webassemblyjs/wast-refmt": "1.11.1"}
, "alex"
, "alloy"
, "audiosprite"
, "autoprefixer"
, "auto-changelog"
Expand Down Expand Up @@ -318,7 +317,6 @@
, "thelounge-theme-zenburn-sourcecodepro"
, "three"
, "tiddlywiki"
, "titanium"
, "tsun"
, "ts-node"
, "ttf2eot"
Expand Down
Loading