Nix packages for third-party projects that don't ship their own flakes
0

Configure Feed

Select the types of activity you want to include in your feed.

agentic / flake.nix
915 B 40 lines
1{ 2 description = "Nix packages for third-party projects that don't ship their own flakes"; 3 4 inputs = { 5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 }; 7 8 outputs = 9 { self, nixpkgs }: 10 let 11 systems = [ 12 "x86_64-linux" 13 "aarch64-linux" 14 "x86_64-darwin" 15 "aarch64-darwin" 16 ]; 17 forAllSystems = nixpkgs.lib.genAttrs systems; 18 in 19 { 20 packages = forAllSystems ( 21 system: 22 let 23 pkgs = nixpkgs.legacyPackages.${system}; 24 in 25 { 26 vit = pkgs.callPackage ./packages/vit { }; 27 default = self.packages.${system}.vit; 28 } 29 ); 30 31 # Convenience: `nix run .#vit -- --help` 32 apps = forAllSystems (system: { 33 vit = { 34 type = "app"; 35 program = "${self.packages.${system}.vit}/bin/vit"; 36 }; 37 default = self.apps.${system}.vit; 38 }); 39 }; 40}