Generate unique derivation names so that we can easily install them from a Nix channel

This commit is contained in:
Sander van der Burg 2013-05-29 13:50:53 +02:00
parent 317fcd3b86
commit dde4a92c5c
4 changed files with 6 additions and 4 deletions

View File

@ -27,12 +27,14 @@ rec {
}; };
simulate_kitchensink_iphone = import ./simulate-kitchensink { simulate_kitchensink_iphone = import ./simulate-kitchensink {
inherit (pkgs_darwin_x86_64) stdenv;
inherit (pkgs_darwin_x86_64.titaniumenv) xcodeenv; inherit (pkgs_darwin_x86_64.titaniumenv) xcodeenv;
kitchensink = kitchensink_iphone; kitchensink = kitchensink_iphone;
device = "iPhone"; device = "iPhone";
}; };
simulate_kitchensink_ipad = import ./simulate-kitchensink { simulate_kitchensink_ipad = import ./simulate-kitchensink {
inherit (pkgs_darwin_x86_64) stdenv;
inherit (pkgs_darwin_x86_64.titaniumenv) xcodeenv; inherit (pkgs_darwin_x86_64.titaniumenv) xcodeenv;
kitchensink = kitchensink_iphone; kitchensink = kitchensink_iphone;
device = "iPad"; device = "iPad";

View File

@ -1,7 +1,7 @@
{androidenv, kitchensink}: {androidenv, kitchensink}:
androidenv.emulateApp { androidenv.emulateApp {
name = "kitchensink"; name = "emulate-${kitchensink.name}";
app = kitchensink; app = kitchensink;
platformVersion = "16"; platformVersion = "16";
useGoogleAPIs = true; useGoogleAPIs = true;

View File

@ -1,7 +1,7 @@
{titaniumenv, fetchgit, target, androidPlatformVersions ? [ "11" ]}: {titaniumenv, fetchgit, target, androidPlatformVersions ? [ "11" ]}:
titaniumenv.buildApp { titaniumenv.buildApp {
name = "KitchenSink"; name = "KitchenSink-${target}";
appId = "com.appcelerator.kitchensink"; appId = "com.appcelerator.kitchensink";
src = fetchgit { src = fetchgit {
url = https://github.com/appcelerator/KitchenSink.git; url = https://github.com/appcelerator/KitchenSink.git;

View File

@ -1,7 +1,7 @@
{xcodeenv, kitchensink, device}: {stdenv, xcodeenv, kitchensink, device}:
xcodeenv.simulateApp { xcodeenv.simulateApp {
name = "kitchensink"; name = "simulate-${kitchensink.name}-${stdenv.lib.replaceChars [" " "(" ")"] ["_" "" ""] device}";
app = kitchensink; app = kitchensink;
inherit device; inherit device;
baseDir = "build/iphone/build/Debug-iphonesimulator"; baseDir = "build/iphone/build/Debug-iphonesimulator";