some stuff for quickly spinning up a nix project
at main 376 B view raw
1{ 2 inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 3 4 outputs = { nixpkgs, ... }: let 5 forAllSystems = 6 function: 7 nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed ( 8 system: function nixpkgs.legacyPackages.${system} 9 ); 10 in { 11 packages = forAllSystems (pkgs: { 12 default = pkgs.callPackage ./default.nix { }; 13 }); 14 }; 15}