Created
July 12, 2022 15:44
-
-
Save barelyhuman/e1e18a0c268feef0e542d49d14aa0dbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with (import <nixpkgs> {}); | |
with (import /home/maarten/code/nixos/yarn2nix { inherit pkgs; }); | |
let | |
gems = bundlerEnv { | |
name = "project-name"; | |
inherit ruby; | |
gemdir = ./.; | |
}; | |
in stdenv.mkDerivation { | |
name = "project-name"; | |
buildInputs = [gems ruby]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> { } }: | |
with pkgs; | |
let | |
jdk = openjdk; | |
node = nodejs-14_x; | |
ruby = ruby_3_0; | |
android-nixpkgs = callPackage (import (builtins.fetchGit { | |
url = "https://github.com/tadfisher/android-nixpkgs.git"; | |
})) { | |
channel = "stable"; | |
}; | |
android-sdk = android-nixpkgs.sdk (sdkPkgs: with sdkPkgs; [ | |
cmdline-tools-latest | |
build-tools-30-0-2 | |
platform-tools | |
tools | |
platforms-android-30 | |
build-tools-29-0-2 | |
]); | |
in | |
stdenv.mkDerivation { | |
name="react-native"; | |
buildInputs = [ | |
android-sdk | |
coreutils | |
node | |
ruby | |
yarn2nix | |
bundix | |
]; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment