yarn-plugin-nixify icon indicating copy to clipboard operation
yarn-plugin-nixify copied to clipboard

usage with flakes

Open Suya1671 opened this issue 3 years ago • 1 comments

How can I use this with a nix flake?

Suya1671 avatar Jul 04 '22 08:07 Suya1671

It's pretty much the same as the generated default.nix, but inside a flake package:

{
  outputs = { self, nixpkgs }: with nixpkgs.lib; {
    packages = mapAttrs (system: pkgs: {
      default = pkgs.callPackage ./yarn-project.nix { } { src = ./.; };
    }) nixpkgs.legacyPackages;
  };
}

stephank avatar Jul 06 '22 17:07 stephank