Giter Club home page Giter Club logo

nixpkgs's Introduction

Nubank overlay for Nixpkgs

Contents of the overlay

dart and flutter

Pinned version of Dart/Flutter used in Nubank. Should be used together.

flutter-patch

It is an alternative to dart/flutter above. This script patches a vanilla Flutter SDK installation. Just use it like this:

flutter-patch $FLUTTER_ROOT

Keep in mind that using this script is kind trick. That is because Flutter SDK downloads some binaries afterwards. Everytime Flutter downloads some binaries you need to rerun this script. You will see strange problems otherwise (i.e.: flutter commands failing to run or no such file or directory errors).

So using dart/flutter packages is recommended and this script should be used as a last resort.

hover

Hover allows running Flutter apps in desktop.

This package for now it is impure. It builds some Go dependencies at runtime, including go-flutter (that is a C dependency). If you have issues with linking phase, delete the following files:

rm -rf `go env GOPATH`
rm -rf `go env GOCACHE`

{all,...}-tools

This is a list of packages that can be appended to your environment.systemPackages like this:

{
  # ...
  environment.systemPackages =
    [...]
    ++ nubank.all-tools
    # Not included by default since they're proprietary tools
    ++ nubank.desktop-tools;
  # ...
}

This will add multiple applications used in Nubank. The usage is optional, but this make it easier to install all tools and keep them up-to-date.

Usage of the overlay

Latest master each rebuild

One way, and probably the most convenient way to pull in this overlay is by just fetching the tarball of latest master on rebuild.

This has side-effects if packages breaks or things like that you may want to be in control of which revision of the overlay you run.

For this option, just add this to your /etc/nixos/configuration.nix:

{
  nixpkgs.overlays = [
    (import (builtins.fetchTarball {
      url = https://github.com/nubank/nixpkgs/archive/master.tar.gz;
    }))
  ];
}

Afterwards, also edit your systemPackages configuration in /etc/nixos/configuration.nix to look something like this:

{
  # ...
  environment.systemPackages = with pkgs; [
    nubank.flutter
    nubank.dart
    nubank.hover
  ] ++ nubank.all-tools;
  # ...
}

Testing local

You can test your new/updated derivation updating the shell.nix, you just need to update the buildInputs with the derivation you want to build then run:

nix-shell

With that you will have a shell with your built derivation.

Also, using nix-shell --pure allows you to test just your derivation without your system packages, making it easier to debug issues.

nixpkgs's People

Contributors

ericdallo avatar sovelten avatar thiagokokada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

plumpmath

nixpkgs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.