Skip to content

Instantly share code, notes, and snippets.

@barelyhuman
Created July 12, 2022 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barelyhuman/e1e18a0c268feef0e542d49d14aa0dbf to your computer and use it in GitHub Desktop.
Save barelyhuman/e1e18a0c268feef0e542d49d14aa0dbf to your computer and use it in GitHub Desktop.
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];
}
{ 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