Giter Site home page Giter Site logo

brew-nix's Introduction

brew-nix

Experimental nix expression to package all MacOS casks from homebrew automatically.

Benefits over nix-darwin's homebrew module

  1. No homebrew needed, packages are fully managed by nix.
  2. Fully nix package expressions, everything is type checked and it will give you an error when you specify an invalid package for example.

Dependencies

It relies on nix 2.19 due to using builtins.convertHash. So make sure you have that or newer. As of writing this on 2024-05-04, nixos-unstable seems to come with nix 2.18.2

Limitations

  1. Running most programs with nix run wont work, so you should install them first.
  2. Some programs refuse to run from non standard locations, since this is automatic there isnt a good way to fix it.
  3. About 700 casks dont come with hashes, so you have to override the package and provide the hash yourself.

Basic usage

nix build github:BatteredBunny/brew-nix#blender
./result/Applications/Blender.app/Contents/MacOS/Blender

Using with home-manager

# flake.nix
inputs = {
  brew-nix = {
    url = "github:BatteredBunny/brew-nix";
    inputs.brew-api.follows = "brew-api";
  };
  brew-api = {
    url = "github:BatteredBunny/brew-api";
    flake = false;
  };
};
# home.nix
nixpkgs = {
  overlays = [
    inputs.brew-nix.overlays.default
  ];
};

home.packages = with pkgs; [
  nixVersions.latest # if your nix version is under 2.19
  brewCasks.marta
];

brew-nix's People

Contributors

batteredbunny avatar juliens avatar pinage404 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  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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

brew-nix's Issues

SageMath does not install

nix build github:BatteredBunny/brew-nix#sage
warning: Ignoring setting 'auto-allocate-uids' because experimental feature 'auto-allocate-uids' is not enabled
error: builder for '/nix/store/m7hm7zgij0gj83f1zfpii6qfv8idkkdh-sage-10.3-2.3.2.drv' failed with exit code 1;
       last 2 log lines:
       > Running phase: unpackPhase
       > Error opening xar archive: /nix/store/b01wjzak42p22400ksq0nz78ys17jfff-SageMath-10.3_arm64.dmg
       For full logs, run 'nix log /nix/store/m7hm7zgij0gj83f1zfpii6qfv8idkkdh-sage-10.3-2.3.2.drv'.

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.