Last active
May 9, 2023 11:13
-
-
Save mausch/a2d66eba49d5a07600ee08be51a5d12a to your computer and use it in GitHub Desktop.
devenv test
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/d1f7b48e35e6dee421cfd0f51481d17f77586997/direnvrc" "sha256-YBzqskFZxmNb3kYVoKD9ZixoPXJh1C9ZvTLGFRkauZ0=" | |
use devenv |
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
# 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": 1683566927, | |
"narHash": "sha256-pCJ9IPQeEbxKOuE6m++M9NRoweHid8r/9A1Uhbk1HQM=", | |
"owner": "cachix", | |
"repo": "devenv", | |
"rev": "c90896345449b92d8f503cf8c2a339088bec0ddc", | |
"type": "github" | |
}, | |
"original": { | |
"dir": "src/modules", | |
"owner": "cachix", | |
"repo": "devenv", | |
"type": "github" | |
} | |
}, | |
"flake-compat": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1673956053, | |
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"type": "github" | |
} | |
}, | |
"flake-utils": { | |
"locked": { | |
"lastModified": 1667395993, | |
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"type": "github" | |
} | |
}, | |
"gitignore": { | |
"inputs": { | |
"nixpkgs": [ | |
"pre-commit-hooks", | |
"nixpkgs" | |
] | |
}, | |
"locked": { | |
"lastModified": 1660459072, | |
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=", | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"type": "github" | |
} | |
}, | |
"nixpkgs": { | |
"locked": { | |
"lastModified": 1683535585, | |
"narHash": "sha256-ND6gCDEfuMNsaJlZQzEbl6hTGrAzURtLoZoGR5dJaCw=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "d9b8ae36f31046dbcf05b6cdc45e860bf19b0b7e", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixpkgs-unstable", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-stable": { | |
"locked": { | |
"lastModified": 1678872516, | |
"narHash": "sha256-/E1YwtMtFAu2KUQKV/1+KFuReYPANM2Rzehk84VxVoc=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixos-22.11", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"pre-commit-hooks": { | |
"inputs": { | |
"flake-compat": "flake-compat", | |
"flake-utils": "flake-utils", | |
"gitignore": "gitignore", | |
"nixpkgs": [ | |
"nixpkgs" | |
], | |
"nixpkgs-stable": "nixpkgs-stable" | |
}, | |
"locked": { | |
"lastModified": 1682596858, | |
"narHash": "sha256-Hf9XVpqaGqe/4oDGr30W8HlsWvJXtMsEPHDqHZA6dDg=", | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"rev": "fb58866e20af98779017134319b5663b8215d912", | |
"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, ... }: | |
{ | |
# https://devenv.sh/packages/ | |
packages = [ pkgs.micromamba ]; | |
} |
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
inputs: | |
nixpkgs: | |
url: github:NixOS/nixpkgs/nixpkgs-unstable |
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": { | |
"inputs": { | |
"flake-compat": "flake-compat", | |
"nix": "nix", | |
"nixpkgs": "nixpkgs", | |
"pre-commit-hooks": "pre-commit-hooks" | |
}, | |
"locked": { | |
"lastModified": 1683566927, | |
"narHash": "sha256-pCJ9IPQeEbxKOuE6m++M9NRoweHid8r/9A1Uhbk1HQM=", | |
"owner": "cachix", | |
"repo": "devenv", | |
"rev": "c90896345449b92d8f503cf8c2a339088bec0ddc", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "cachix", | |
"repo": "devenv", | |
"type": "github" | |
} | |
}, | |
"flake-compat": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1673956053, | |
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "edolstra", | |
"repo": "flake-compat", | |
"type": "github" | |
} | |
}, | |
"flake-utils": { | |
"locked": { | |
"lastModified": 1667395993, | |
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"type": "github" | |
} | |
}, | |
"flake-utils_2": { | |
"inputs": { | |
"systems": "systems" | |
}, | |
"locked": { | |
"lastModified": 1681202837, | |
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"rev": "cfacdce06f30d2b68473a46042957675eebb3401", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "numtide", | |
"repo": "flake-utils", | |
"type": "github" | |
} | |
}, | |
"gitignore": { | |
"inputs": { | |
"nixpkgs": [ | |
"devenv", | |
"pre-commit-hooks", | |
"nixpkgs" | |
] | |
}, | |
"locked": { | |
"lastModified": 1660459072, | |
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=", | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "hercules-ci", | |
"repo": "gitignore.nix", | |
"type": "github" | |
} | |
}, | |
"lowdown-src": { | |
"flake": false, | |
"locked": { | |
"lastModified": 1633514407, | |
"narHash": "sha256-Dw32tiMjdK9t3ETl5fzGrutQTzh2rufgZV4A/BbxuD4=", | |
"owner": "kristapsdz", | |
"repo": "lowdown", | |
"rev": "d2c2b44ff6c27b936ec27358a2653caaef8f73b8", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "kristapsdz", | |
"repo": "lowdown", | |
"type": "github" | |
} | |
}, | |
"nix": { | |
"inputs": { | |
"lowdown-src": "lowdown-src", | |
"nixpkgs": [ | |
"devenv", | |
"nixpkgs" | |
], | |
"nixpkgs-regression": "nixpkgs-regression" | |
}, | |
"locked": { | |
"lastModified": 1676545802, | |
"narHash": "sha256-EK4rZ+Hd5hsvXnzSzk2ikhStJnD63odF7SzsQ8CuSPU=", | |
"owner": "domenkozar", | |
"repo": "nix", | |
"rev": "7c91803598ffbcfe4a55c44ac6d49b2cf07a527f", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "domenkozar", | |
"ref": "relaxed-flakes", | |
"repo": "nix", | |
"type": "github" | |
} | |
}, | |
"nixpkgs": { | |
"locked": { | |
"lastModified": 1678875422, | |
"narHash": "sha256-T3o6NcQPwXjxJMn2shz86Chch4ljXgZn746c2caGxd8=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "126f49a01de5b7e35a43fd43f891ecf6d3a51459", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixpkgs-unstable", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-regression": { | |
"locked": { | |
"lastModified": 1643052045, | |
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-stable": { | |
"locked": { | |
"lastModified": 1678872516, | |
"narHash": "sha256-/E1YwtMtFAu2KUQKV/1+KFuReYPANM2Rzehk84VxVoc=", | |
"owner": "NixOS", | |
"repo": "nixpkgs", | |
"rev": "9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "NixOS", | |
"ref": "nixos-22.11", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs_2": { | |
"locked": { | |
"lastModified": 1683535585, | |
"narHash": "sha256-ND6gCDEfuMNsaJlZQzEbl6hTGrAzURtLoZoGR5dJaCw=", | |
"owner": "nixos", | |
"repo": "nixpkgs", | |
"rev": "d9b8ae36f31046dbcf05b6cdc45e860bf19b0b7e", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "nixos", | |
"ref": "nixpkgs-unstable", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"pre-commit-hooks": { | |
"inputs": { | |
"flake-compat": [ | |
"devenv", | |
"flake-compat" | |
], | |
"flake-utils": "flake-utils", | |
"gitignore": "gitignore", | |
"nixpkgs": [ | |
"devenv", | |
"nixpkgs" | |
], | |
"nixpkgs-stable": "nixpkgs-stable" | |
}, | |
"locked": { | |
"lastModified": 1682596858, | |
"narHash": "sha256-Hf9XVpqaGqe/4oDGr30W8HlsWvJXtMsEPHDqHZA6dDg=", | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"rev": "fb58866e20af98779017134319b5663b8215d912", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "cachix", | |
"repo": "pre-commit-hooks.nix", | |
"type": "github" | |
} | |
}, | |
"root": { | |
"inputs": { | |
"devenv": "devenv", | |
"flake-utils": "flake-utils_2", | |
"nixpkgs": "nixpkgs_2" | |
} | |
}, | |
"systems": { | |
"locked": { | |
"lastModified": 1681028828, | |
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", | |
"owner": "nix-systems", | |
"repo": "default", | |
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "nix-systems", | |
"repo": "default", | |
"type": "github" | |
} | |
} | |
}, | |
"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
{ | |
nixConfig = { | |
extra-substituters = [ "https://devenv.cachix.org" ]; | |
extra-trusted-public-keys = [ "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=" ]; | |
}; | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
devenv.url = "github:cachix/devenv"; | |
}; | |
outputs = { self, nixpkgs, flake-utils, devenv }: | |
flake-utils.lib.eachDefaultSystem (system: | |
let pkgs = nixpkgs.legacyPackages.${system}; | |
in { | |
defaultPackage = pkgs.mkShell { | |
buildInputs = [ | |
devenv.packages.${system}.devenv | |
]; | |
shellHook = '' | |
devenv up | |
''; | |
}; | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment