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 {
inherit (pkgs_darwin_x86_64) stdenv;
inherit (pkgs_darwin_x86_64.titaniumenv) xcodeenv;
kitchensink = kitchensink_iphone;
device = "iPhone";
};
simulate_kitchensink_ipad = import ./simulate-kitchensink {
inherit (pkgs_darwin_x86_64) stdenv;
inherit (pkgs_darwin_x86_64.titaniumenv) xcodeenv;
kitchensink = kitchensink_iphone;
device = "iPad";

View File

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

View File

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

View File

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