Revamp all templates to remove flake-utils and nixpkgs-unstable
This commit is contained in:
		
							parent
							
								
									db0398d60d
								
							
						
					
					
						commit
						8532ea5be8
					
				
					 58 changed files with 587 additions and 1299 deletions
				
			
		
							
								
								
									
										24
									
								
								zig/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										24
									
								
								zig/flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
				
			
			@ -1,39 +1,23 @@
 | 
			
		|||
{
 | 
			
		||||
  "nodes": {
 | 
			
		||||
    "flake-utils": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1676283394,
 | 
			
		||||
        "narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "numtide",
 | 
			
		||||
        "repo": "flake-utils",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "nixpkgs": {
 | 
			
		||||
      "locked": {
 | 
			
		||||
        "lastModified": 1678101631,
 | 
			
		||||
        "narHash": "sha256-vuuvWBNGhNSPPbFCjp2XZmBqJOvsFF1T0hyleRnHZlc=",
 | 
			
		||||
        "lastModified": 1689261696,
 | 
			
		||||
        "narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "rev": "934e613c31cf7af0624dcf088b9e2d9b802d0717",
 | 
			
		||||
        "rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      },
 | 
			
		||||
      "original": {
 | 
			
		||||
        "owner": "NixOS",
 | 
			
		||||
        "ref": "release-22.11",
 | 
			
		||||
        "ref": "nixpkgs-unstable",
 | 
			
		||||
        "repo": "nixpkgs",
 | 
			
		||||
        "type": "github"
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "root": {
 | 
			
		||||
      "inputs": {
 | 
			
		||||
        "flake-utils": "flake-utils",
 | 
			
		||||
        "nixpkgs": "nixpkgs"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,28 +1,20 @@
 | 
			
		|||
{
 | 
			
		||||
  description = "A Nix-flake-based Zig development environment";
 | 
			
		||||
 | 
			
		||||
  inputs = {
 | 
			
		||||
    nixpkgs.url = "github:NixOS/nixpkgs/release-22.11";
 | 
			
		||||
    flake-utils.url = "github:numtide/flake-utils";
 | 
			
		||||
  };
 | 
			
		||||
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
 | 
			
		||||
 | 
			
		||||
  outputs =
 | 
			
		||||
    { self
 | 
			
		||||
    , nixpkgs
 | 
			
		||||
    , flake-utils
 | 
			
		||||
    }:
 | 
			
		||||
 | 
			
		||||
    flake-utils.lib.eachDefaultSystem (system:
 | 
			
		||||
  outputs = { self, nixpkgs }:
 | 
			
		||||
    let
 | 
			
		||||
      pkgs = import nixpkgs { inherit system; };
 | 
			
		||||
      supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
 | 
			
		||||
      forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
 | 
			
		||||
        pkgs = import nixpkgs { inherit system; };
 | 
			
		||||
      });
 | 
			
		||||
    in
 | 
			
		||||
    {
 | 
			
		||||
      devShells.default = pkgs.mkShell {
 | 
			
		||||
        packages = with pkgs; [ zig ];
 | 
			
		||||
 | 
			
		||||
        shellHook = ''
 | 
			
		||||
          echo "zig `${pkgs.zig}/bin/zig version`"
 | 
			
		||||
        '';
 | 
			
		||||
      };
 | 
			
		||||
    });
 | 
			
		||||
      devShells = forEachSupportedSystem ({ pkgs }: {
 | 
			
		||||
        default = pkgs.mkShell {
 | 
			
		||||
          packages = with pkgs; [ zig ];
 | 
			
		||||
        };
 | 
			
		||||
      });
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue