GitXplorerGitXplorer
m

nix-devbox-utils

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
e664e51840e5d76a20aaa110a0a2691d84cfdb1c

add license

mmrene committed a year ago
Unverified
075a0be650c6c2646f33a97500c4a1bbf1f4a049

fix example eval error

mmrene committed a year ago
Unverified
02d875d38832ae12ca7e42e74d2a615f741e7458

run deadnix + statix

mmrene committed a year ago
Unverified
3491e58c82391fcd2c14574f711098034131f083

examples: bump flake lock

mmrene committed a year ago
Unverified
c83f84840b48ee01c730df9fc0d4a5d1816b37c7

support direct flake references from devbox.json

mmrene committed a year ago
Unverified
7bd6bb32d1a17bd5ac6139abad88432e56794cf7

initial commit

mmrene committed a year ago

README

The README file for this repository.

nix-devbox-utils

What does it do?

nix-devbox-utils makes your devbox.lock usable from your existing nix code. Its imported packages can then be used as part of other derivations.

Usage

{
  description = "A flake re-exporting all packages from a devbox.lock file";

  inputs.nix-devbox-utils.url = "github:mrene/nix-devbox-utils";

  outputs = { self, nixpkgs, nix-devbox-utils }: 
  {
    packages.x86_64-linux = let
      pkgs = nixpkgs.legacyPackages.x86_64-linux;

      # Import the devbox lock file
      # This returns { packages = { "${name}" = derivation; ... }; all-packages = derivation; }
      box = nix-devbox-utils.lib.mkDevbox {
        inherit pkgs;
        devbox = ./devbox.json;
        lockFile = ./devbox.lock;
      };
    in 
      box.packages // { all = box.all-packages; };
  };
}