Created
July 26, 2024 16:10
-
-
Save viluon/56f9a3344d5b41b9981b493d34056e68 to your computer and use it in GitHub Desktop.
devenv update doesn't udpate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source_url "https://raw.githubusercontent.com/cachix/devenv/95f329d49a8a5289d31e0982652f7058a189bfca/direnvrc" "sha256-d+8cBpDfDBj41inrADaJt+bDWhOktwslgoP5YiGJ1v0=" | |
| use devenv | |
| unset PS1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # compilation products | |
| build/ | |
| # compilation byproducts | |
| .gradle/ | |
| .kotlin/ | |
| # testing byproducts | |
| jacoco.exec | |
| *.log | |
| # intellij idea | |
| *.iml | |
| *.iws | |
| .idea/ | |
| # eclipse | |
| .settings/ | |
| .metadata/ | |
| .recommenders | |
| .project | |
| .classpath | |
| .loadpath | |
| *.launch | |
| .springBeans | |
| # BlueJ files | |
| *.ctxt | |
| # various backup files | |
| *.bak | |
| *.bkp | |
| *~ | |
| *.swp | |
| *.tmp | |
| # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | |
| hs_err_pid* | |
| # Devenv | |
| .devenv* | |
| devenv.local.nix | |
| # direnv | |
| .direnv | |
| # pre-commit | |
| .pre-commit-config.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "nodes": { | |
| "devenv": { | |
| "locked": { | |
| "dir": "src/modules", | |
| "lastModified": 1721817837, | |
| "owner": "cachix", | |
| "repo": "devenv", | |
| "rev": "44bfc26843694ab17ebae1d4922065e48d93f501", | |
| "treeHash": "62b4ad814fcc952c5660916c9cdadc34927b3330", | |
| "type": "github" | |
| }, | |
| "original": { | |
| "dir": "src/modules", | |
| "owner": "cachix", | |
| "repo": "devenv", | |
| "type": "github" | |
| } | |
| }, | |
| "flake-compat": { | |
| "flake": false, | |
| "locked": { | |
| "lastModified": 1696426674, | |
| "owner": "edolstra", | |
| "repo": "flake-compat", | |
| "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", | |
| "treeHash": "2addb7b71a20a25ea74feeaf5c2f6a6b30898ecb", | |
| "type": "github" | |
| }, | |
| "original": { | |
| "owner": "edolstra", | |
| "repo": "flake-compat", | |
| "type": "github" | |
| } | |
| }, | |
| "gitignore": { | |
| "inputs": { | |
| "nixpkgs": [ | |
| "pre-commit-hooks", | |
| "nixpkgs" | |
| ] | |
| }, | |
| "locked": { | |
| "lastModified": 1709087332, | |
| "owner": "hercules-ci", | |
| "repo": "gitignore.nix", | |
| "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", | |
| "treeHash": "ca14199cabdfe1a06a7b1654c76ed49100a689f9", | |
| "type": "github" | |
| }, | |
| "original": { | |
| "owner": "hercules-ci", | |
| "repo": "gitignore.nix", | |
| "type": "github" | |
| } | |
| }, | |
| "nixpkgs": { | |
| "locked": { | |
| "lastModified": 1716977621, | |
| "owner": "cachix", | |
| "repo": "devenv-nixpkgs", | |
| "rev": "4267e705586473d3e5c8d50299e71503f16a6fb6", | |
| "treeHash": "6d9f1f7ca0faf1bc2eeb397c78a49623260d3412", | |
| "type": "github" | |
| }, | |
| "original": { | |
| "owner": "cachix", | |
| "ref": "rolling", | |
| "repo": "devenv-nixpkgs", | |
| "type": "github" | |
| } | |
| }, | |
| "nixpkgs-stable": { | |
| "locked": { | |
| "lastModified": 1721949857, | |
| "owner": "NixOS", | |
| "repo": "nixpkgs", | |
| "rev": "a1cc729dcbc31d9b0d11d86dc7436163548a9665", | |
| "treeHash": "39c0cfae49b35d4880cf1c2570fa51d22b7e4719", | |
| "type": "github" | |
| }, | |
| "original": { | |
| "owner": "NixOS", | |
| "ref": "nixos-24.05", | |
| "repo": "nixpkgs", | |
| "type": "github" | |
| } | |
| }, | |
| "pre-commit-hooks": { | |
| "inputs": { | |
| "flake-compat": "flake-compat", | |
| "gitignore": "gitignore", | |
| "nixpkgs": [ | |
| "nixpkgs" | |
| ], | |
| "nixpkgs-stable": "nixpkgs-stable" | |
| }, | |
| "locked": { | |
| "lastModified": 1721042469, | |
| "owner": "cachix", | |
| "repo": "pre-commit-hooks.nix", | |
| "rev": "f451c19376071a90d8c58ab1a953c6e9840527fd", | |
| "treeHash": "91f40b7a3b9f6886bd77482cba5b5cd890415a2e", | |
| "type": "github" | |
| }, | |
| "original": { | |
| "owner": "cachix", | |
| "repo": "pre-commit-hooks.nix", | |
| "type": "github" | |
| } | |
| }, | |
| "root": { | |
| "inputs": { | |
| "devenv": "devenv", | |
| "nixpkgs": "nixpkgs", | |
| "pre-commit-hooks": "pre-commit-hooks" | |
| } | |
| } | |
| }, | |
| "root": "root", | |
| "version": 7 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { pkgs, lib, config, inputs, ... }: | |
| { | |
| # https://devenv.sh/basics/ | |
| env.GREET = "devenv"; | |
| # https://devenv.sh/packages/ | |
| packages = [ pkgs.git ]; | |
| # https://devenv.sh/languages/ | |
| # languages.rust.enable = true; | |
| # https://devenv.sh/processes/ | |
| # processes.cargo-watch.exec = "cargo-watch"; | |
| # https://devenv.sh/services/ | |
| # services.postgres.enable = true; | |
| # https://devenv.sh/scripts/ | |
| scripts.hello.exec = '' | |
| echo hello from $GREET | |
| ''; | |
| enterShell = '' | |
| hello | |
| git --version | |
| ''; | |
| # https://devenv.sh/tests/ | |
| enterTest = '' | |
| echo "Running tests" | |
| git --version | grep --color=auto "${pkgs.git.version}" | |
| ''; | |
| # https://devenv.sh/pre-commit-hooks/ | |
| # pre-commit.hooks.shellcheck.enable = true; | |
| # See full reference at https://devenv.sh/reference/options/ | |
| cachix.enable = false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # yaml-language-server: $schema=https://devenv.sh/devenv.schema.json | |
| inputs: | |
| nixpkgs: | |
| url: github:cachix/devenv-nixpkgs/rolling | |
| # If you're using non-OSS software, you can set allowUnfree to true. | |
| # allowUnfree: true | |
| # If you're willing to use a package that's vulnerable | |
| # permittedInsecurePackages: | |
| # - "openssl-1.1.1w" | |
| # If you have more than one devenv you can merge them | |
| #imports: | |
| # - ./backend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment