Update flake.lock files and add helper script
This commit is contained in:
		
							parent
							
								
									7a7d428131
								
							
						
					
					
						commit
						ac533001c5
					
				
					 7 changed files with 30 additions and 18 deletions
				
			
		| 
						 | 
					@ -1,6 +1,9 @@
 | 
				
			||||||
# Nix flake templates for easy dev environments
 | 
					# Nix flake templates for easy dev environments
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```shell
 | 
					```shell
 | 
				
			||||||
 | 
					# Elixir
 | 
				
			||||||
 | 
					nix flake init --template github:the-nix-way/dev-templates#elixir
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Gleam
 | 
					# Gleam
 | 
				
			||||||
nix flake init --template github:the-nix-way/dev-templates#gleam
 | 
					nix flake init --template github:the-nix-way/dev-templates#gleam
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										6
									
								
								gleam/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								gleam/flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -17,11 +17,11 @@
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "nixpkgs": {
 | 
					    "nixpkgs": {
 | 
				
			||||||
      "locked": {
 | 
					      "locked": {
 | 
				
			||||||
        "lastModified": 1657982260,
 | 
					        "lastModified": 1659041591,
 | 
				
			||||||
        "narHash": "sha256-k9hwUbpgBmIipH2ZkRS5BpqLKbQYLiB0ewI+e9HHK0I=",
 | 
					        "narHash": "sha256-kKoy3tDZl3w0GuVlvJ6W/ERGRqeXy2+IGXL9g1a3F68=",
 | 
				
			||||||
        "owner": "NixOS",
 | 
					        "owner": "NixOS",
 | 
				
			||||||
        "repo": "nixpkgs",
 | 
					        "repo": "nixpkgs",
 | 
				
			||||||
        "rev": "2d2bf29c02bfd0fc0cafb613c6b49d3e6c0d6361",
 | 
					        "rev": "ab0794b1ae2756411d176dd5b82843a4ae56fe6e",
 | 
				
			||||||
        "type": "github"
 | 
					        "type": "github"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "original": {
 | 
					      "original": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										6
									
								
								go1.17/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								go1.17/flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -17,11 +17,11 @@
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "nixpkgs": {
 | 
					    "nixpkgs": {
 | 
				
			||||||
      "locked": {
 | 
					      "locked": {
 | 
				
			||||||
        "lastModified": 1657577542,
 | 
					        "lastModified": 1659041591,
 | 
				
			||||||
        "narHash": "sha256-tJnYrGTswnCtz8hXR24y4sZ7d+kgZ7UshnFBcrDjFkU=",
 | 
					        "narHash": "sha256-kKoy3tDZl3w0GuVlvJ6W/ERGRqeXy2+IGXL9g1a3F68=",
 | 
				
			||||||
        "owner": "NixOS",
 | 
					        "owner": "NixOS",
 | 
				
			||||||
        "repo": "nixpkgs",
 | 
					        "repo": "nixpkgs",
 | 
				
			||||||
        "rev": "0a1978fbe48b8bd08be138507e9dade26e5778b8",
 | 
					        "rev": "ab0794b1ae2756411d176dd5b82843a4ae56fe6e",
 | 
				
			||||||
        "type": "github"
 | 
					        "type": "github"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "original": {
 | 
					      "original": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										6
									
								
								go1.18/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								go1.18/flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -17,11 +17,11 @@
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "nixpkgs": {
 | 
					    "nixpkgs": {
 | 
				
			||||||
      "locked": {
 | 
					      "locked": {
 | 
				
			||||||
        "lastModified": 1657577542,
 | 
					        "lastModified": 1659041591,
 | 
				
			||||||
        "narHash": "sha256-tJnYrGTswnCtz8hXR24y4sZ7d+kgZ7UshnFBcrDjFkU=",
 | 
					        "narHash": "sha256-kKoy3tDZl3w0GuVlvJ6W/ERGRqeXy2+IGXL9g1a3F68=",
 | 
				
			||||||
        "owner": "NixOS",
 | 
					        "owner": "NixOS",
 | 
				
			||||||
        "repo": "nixpkgs",
 | 
					        "repo": "nixpkgs",
 | 
				
			||||||
        "rev": "0a1978fbe48b8bd08be138507e9dade26e5778b8",
 | 
					        "rev": "ab0794b1ae2756411d176dd5b82843a4ae56fe6e",
 | 
				
			||||||
        "type": "github"
 | 
					        "type": "github"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "original": {
 | 
					      "original": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										12
									
								
								rust/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										12
									
								
								rust/flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -32,11 +32,11 @@
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "nixpkgs": {
 | 
					    "nixpkgs": {
 | 
				
			||||||
      "locked": {
 | 
					      "locked": {
 | 
				
			||||||
        "lastModified": 1657577542,
 | 
					        "lastModified": 1659041591,
 | 
				
			||||||
        "narHash": "sha256-tJnYrGTswnCtz8hXR24y4sZ7d+kgZ7UshnFBcrDjFkU=",
 | 
					        "narHash": "sha256-kKoy3tDZl3w0GuVlvJ6W/ERGRqeXy2+IGXL9g1a3F68=",
 | 
				
			||||||
        "owner": "NixOS",
 | 
					        "owner": "NixOS",
 | 
				
			||||||
        "repo": "nixpkgs",
 | 
					        "repo": "nixpkgs",
 | 
				
			||||||
        "rev": "0a1978fbe48b8bd08be138507e9dade26e5778b8",
 | 
					        "rev": "ab0794b1ae2756411d176dd5b82843a4ae56fe6e",
 | 
				
			||||||
        "type": "github"
 | 
					        "type": "github"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "original": {
 | 
					      "original": {
 | 
				
			||||||
| 
						 | 
					@ -74,11 +74,11 @@
 | 
				
			||||||
        "nixpkgs": "nixpkgs_2"
 | 
					        "nixpkgs": "nixpkgs_2"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "locked": {
 | 
					      "locked": {
 | 
				
			||||||
        "lastModified": 1657507721,
 | 
					        "lastModified": 1658976490,
 | 
				
			||||||
        "narHash": "sha256-FtV5D35ikz7zvhBX66Bs3VKd/GDyIVA+WQzqkR1PS0E=",
 | 
					        "narHash": "sha256-L2zf+ertc3WoKuiZatEHiFlrwN049EXapEoIiTS3J78=",
 | 
				
			||||||
        "owner": "oxalica",
 | 
					        "owner": "oxalica",
 | 
				
			||||||
        "repo": "rust-overlay",
 | 
					        "repo": "rust-overlay",
 | 
				
			||||||
        "rev": "1a133f54a0229af8310879eac2c4a82c0576a0b9",
 | 
					        "rev": "bca9a9b96146145147540b890b4f9393d456e5bb",
 | 
				
			||||||
        "type": "github"
 | 
					        "type": "github"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "original": {
 | 
					      "original": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										9
									
								
								update.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								update.sh
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,9 @@
 | 
				
			||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					for dir in `ls -d */`; do # Iterate through all the templates
 | 
				
			||||||
 | 
					  (
 | 
				
			||||||
 | 
					    cd $dir
 | 
				
			||||||
 | 
					    nix flake update # Update flake.lock
 | 
				
			||||||
 | 
					    direnv reload    # Make sure things work after the update
 | 
				
			||||||
 | 
					  )
 | 
				
			||||||
 | 
					done
 | 
				
			||||||
							
								
								
									
										6
									
								
								zig/flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								zig/flake.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -17,11 +17,11 @@
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "nixpkgs": {
 | 
					    "nixpkgs": {
 | 
				
			||||||
      "locked": {
 | 
					      "locked": {
 | 
				
			||||||
        "lastModified": 1657982260,
 | 
					        "lastModified": 1659041591,
 | 
				
			||||||
        "narHash": "sha256-k9hwUbpgBmIipH2ZkRS5BpqLKbQYLiB0ewI+e9HHK0I=",
 | 
					        "narHash": "sha256-kKoy3tDZl3w0GuVlvJ6W/ERGRqeXy2+IGXL9g1a3F68=",
 | 
				
			||||||
        "owner": "NixOS",
 | 
					        "owner": "NixOS",
 | 
				
			||||||
        "repo": "nixpkgs",
 | 
					        "repo": "nixpkgs",
 | 
				
			||||||
        "rev": "2d2bf29c02bfd0fc0cafb613c6b49d3e6c0d6361",
 | 
					        "rev": "ab0794b1ae2756411d176dd5b82843a4ae56fe6e",
 | 
				
			||||||
        "type": "github"
 | 
					        "type": "github"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "original": {
 | 
					      "original": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue