about summary refs log tree commit diff
path: root/pkgs/development/mobile
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2023-08-17 13:18:47 -0700
committerRobert Schütz <nix@dotlambda.de>2023-09-02 19:46:07 -0700
commitd2e93acf321913d94aeb087c6e488f5e4ba4ad2f (patch)
tree2cbed01e0c959c1d72bbd0464596b619e5254609 /pkgs/development/mobile
parentac3d20005683a986cab6d7875ec6a3a9b2211d17 (diff)
downloadnixlib-d2e93acf321913d94aeb087c6e488f5e4ba4ad2f.tar
nixlib-d2e93acf321913d94aeb087c6e488f5e4ba4ad2f.tar.gz
nixlib-d2e93acf321913d94aeb087c6e488f5e4ba4ad2f.tar.bz2
nixlib-d2e93acf321913d94aeb087c6e488f5e4ba4ad2f.tar.lz
nixlib-d2e93acf321913d94aeb087c6e488f5e4ba4ad2f.tar.xz
nixlib-d2e93acf321913d94aeb087c6e488f5e4ba4ad2f.tar.zst
nixlib-d2e93acf321913d94aeb087c6e488f5e4ba4ad2f.zip
titanium-alloy: use buildNpmPackage
Diffstat (limited to 'pkgs/development/mobile')
-rw-r--r--pkgs/development/mobile/titanium-alloy/default.nix29
-rw-r--r--pkgs/development/mobile/titaniumenv/default.nix3
2 files changed, 31 insertions, 1 deletions
diff --git a/pkgs/development/mobile/titanium-alloy/default.nix b/pkgs/development/mobile/titanium-alloy/default.nix
new file mode 100644
index 000000000000..bb45289e3f40
--- /dev/null
+++ b/pkgs/development/mobile/titanium-alloy/default.nix
@@ -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; [ ];
+  };
+}
diff --git a/pkgs/development/mobile/titaniumenv/default.nix b/pkgs/development/mobile/titaniumenv/default.nix
index 151502a5d160..e0d5ef02d7da 100644
--- a/pkgs/development/mobile/titaniumenv/default.nix
+++ b/pkgs/development/mobile/titaniumenv/default.nix
@@ -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;