diff --git a/.github/workflows/buildtest.yml b/.github/workflows/buildtest.yml index 2e13bbd91..e7ae81980 100644 --- a/.github/workflows/buildtest.yml +++ b/.github/workflows/buildtest.yml @@ -13,50 +13,62 @@ jobs: strategy: fail-fast: false matrix: - os: [[self-hosted, linux, X64], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, linux, ARM64]] + os: + [ + [self-hosted, linux, X64], + [macos-13], + [self-hosted, macOS, ARM64], + [self-hosted, linux, ARM64], + ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: cachix/cachix-action@v15 - with: - name: devenv - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - id: build - run: | - bin=$(nix build --print-out-paths) - echo "bin=$bin" >> $GITHUB_OUTPUT - - name: Run tests - run: ./result/bin/devenv test + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v15 + with: + name: devenv + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - id: build + run: | + bin=$(nix build --print-out-paths) + echo "bin=$bin" >> $GITHUB_OUTPUT + - name: Run tests + run: ./result/bin/devenv test tests: needs: build strategy: fail-fast: false matrix: - os: [[self-hosted, linux, X64], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, linux, ARM64]] + os: + [ + [self-hosted, linux, X64], + [macos-13], + [self-hosted, macOS, ARM64], + [self-hosted, linux, ARM64], + ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: cachix/cachix-action@v15 - with: - name: devenv - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - name: Build devenv - run: | - nix build - echo "$PWD/result/bin" >> $GITHUB_PATH - - name: Run devenv-test-cli - run: devenv shell devenv-test-cli - - name: Run tests - run: devenv-run-tests tests + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v15 + with: + name: devenv + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: Build devenv + run: | + nix build + echo "$PWD/result/bin" >> $GITHUB_PATH + - name: Run devenv-test-cli + run: devenv shell devenv-test-cli + - name: Run tests + run: devenv-run-tests tests pin: needs: build @@ -69,13 +81,14 @@ jobs: outputs: examples: ${{ steps.set-examples.outputs.examples }} steps: - - name: Checkout base repo - uses: actions/checkout@v4 - - name: Fetch examples to run - id: set-examples - run: | - json=$(nix shell nixpkgs#tree -c tree -J -L 1 examples | nix shell nixpkgs#jq -c jq -c '[.[0].contents[] | .name]') - echo "examples=$json" >> $GITHUB_OUTPUT + - name: Checkout base repo + uses: actions/checkout@v4 + - name: Fetch examples to run + id: set-examples + run: | + set -euxo pipefail + json=$(nix shell nixpkgs#tree -c tree -J -L 1 examples | nix shell nixpkgs#jq -c jq -c '[.[0].contents[] | .name]') + echo "examples=$json" >> $GITHUB_OUTPUT examples: name: ${{ matrix.example }} (${{ join(matrix.os) }}) @@ -83,26 +96,32 @@ jobs: strategy: fail-fast: false matrix: - os: [[self-hosted, linux, X64], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, linux, ARM64]] + os: + [ + [self-hosted, linux, X64], + [macos-13], + [self-hosted, macOS, ARM64], + [self-hosted, linux, ARM64], + ] example: ${{ fromJSON(needs.generate-examples.outputs.examples) }} runs-on: ${{ matrix.os }} steps: - - run: sudo rm -rf /opt& - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: cachix/cachix-action@v15 - with: - name: devenv - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - name: Build devenv - run: | - nix build - echo "$PWD/result/bin" >> $GITHUB_PATH - - name: Run examples - run: devenv-run-tests --only ${{ matrix.example }} examples + - run: sudo rm -rf /opt& + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v15 + with: + name: devenv + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: Build devenv + run: | + nix build + echo "$PWD/result/bin" >> $GITHUB_PATH + - name: Run examples + run: devenv-run-tests --only ${{ matrix.example }} examples direnv: name: direnv (${{ join(matrix.os) }}) @@ -110,33 +129,39 @@ jobs: strategy: fail-fast: false matrix: - os: [[ubuntu-latest], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, Linux, ARM64]] + os: + [ + [ubuntu-latest], + [macos-13], + [self-hosted, macOS, ARM64], + [self-hosted, Linux, ARM64], + ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v15 - with: - name: devenv - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - name: Build devenv - run: | - nix build - echo "$PWD/result/bin" >> $GITHUB_PATH - - run: | - mkdir -p ~/.config/direnv/ - cat > ~/.config/direnv/direnv.toml << 'EOF' - [global] - strict_env = true - EOF + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v15 + with: + name: devenv + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: Build devenv + run: | + nix build + echo "$PWD/result/bin" >> $GITHUB_PATH + - run: | + mkdir -p ~/.config/direnv/ + cat > ~/.config/direnv/direnv.toml << 'EOF' + [global] + strict_env = true + EOF - devenv_dir=$PWD - tmp="$(mktemp -d)" - pushd "$tmp" - nix shell nixpkgs#direnv -c devenv --override-input devenv path:$devenv_dir?dir=src/modules init - popd + devenv_dir=$PWD + tmp="$(mktemp -d)" + pushd "$tmp" + nix shell nixpkgs#direnv -c devenv --override-input devenv path:$devenv_dir?dir=src/modules init + popd fish-zsh: name: zsh/fish (${{ join(matrix.os) }}) @@ -144,20 +169,26 @@ jobs: strategy: fail-fast: false matrix: - os: [[ubuntu-latest], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, linux, ARM64]] + os: + [ + [ubuntu-latest], + [macos-13], + [self-hosted, macOS, ARM64], + [self-hosted, linux, ARM64], + ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v15 - with: - name: devenv - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - name: Build devenv - run: nix build - - name: Test devenv in fish and zsh - run: | - nix shell nixpkgs#zsh -c zsh -c "./result/bin/devenv version" - nix shell nixpkgs#fish -c fish -c "./result/bin/devenv version" + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v15 + with: + name: devenv + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: Build devenv + run: nix build + - name: Test devenv in fish and zsh + run: | + nix shell nixpkgs#zsh -c zsh -c "./result/bin/devenv version" + nix shell nixpkgs#fish -c fish -c "./result/bin/devenv version" diff --git a/devenv.lock b/devenv.lock index 322f63949..92684dd07 100644 --- a/devenv.lock +++ b/devenv.lock @@ -16,10 +16,10 @@ "flake-compat": { "flake": false, "locked": { - "lastModified": 1696426674, + "lastModified": 1732722421, "owner": "edolstra", "repo": "flake-compat", - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "rev": "9ed2ac151eada2306ca8c418ebd97807bb08f6ac", "type": "github" }, "original": { @@ -31,10 +31,10 @@ "flake-compat_2": { "flake": false, "locked": { - "lastModified": 1696426674, + "lastModified": 1732722421, "owner": "edolstra", "repo": "flake-compat", - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "rev": "9ed2ac151eada2306ca8c418ebd97807bb08f6ac", "type": "github" }, "original": { @@ -73,10 +73,10 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1730302582, + "lastModified": 1732021966, "owner": "cachix", "repo": "git-hooks.nix", - "rev": "af8a16fe5c264f5e9e18bcee2859b40a656876cf", + "rev": "3308484d1a443fc5bc92012435d79e80458fe43c", "type": "github" }, "original": { @@ -108,10 +108,10 @@ "libgit2": { "flake": false, "locked": { - "lastModified": 1730231647, + "lastModified": 1732660327, "owner": "libgit2", "repo": "libgit2", - "rev": "c6111ec06cc0b0126cd67bdab78f8091e4cfaa10", + "rev": "c86842f0a518cc15d7964027d01a4ae3bf9604db", "type": "github" }, "original": { @@ -146,10 +146,10 @@ }, "nixpkgs": { "locked": { - "lastModified": 1730665687, + "lastModified": 1732887538, "owner": "NixOS", "repo": "nixpkgs", - "rev": "df9782b6077321330159a0ad8902d879f093d7c1", + "rev": "2e212b2e1fad641d3721f8b1b530747ff4287905", "type": "github" }, "original": { @@ -191,10 +191,10 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1730327045, + "lastModified": 1732749044, "owner": "NixOS", "repo": "nixpkgs", - "rev": "080166c15633801df010977d9d7474b4a6c549d7", + "rev": "0c5b4ecbed5b155b705336aa96d878e55acd8685", "type": "github" }, "original": { @@ -206,15 +206,15 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1716977621, + "lastModified": 1732780316, "owner": "cachix", "repo": "devenv-nixpkgs", - "rev": "4267e705586473d3e5c8d50299e71503f16a6fb6", + "rev": "226216574ada4c3ecefcbbec41f39ce4655f78ef", "type": "github" }, "original": { "owner": "cachix", - "ref": "rolling", + "ref": "bump-rolling", "repo": "devenv-nixpkgs", "type": "github" } @@ -237,10 +237,10 @@ ] }, "locked": { - "lastModified": 1730302582, + "lastModified": 1732021966, "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "af8a16fe5c264f5e9e18bcee2859b40a656876cf", + "rev": "3308484d1a443fc5bc92012435d79e80458fe43c", "type": "github" }, "original": { diff --git a/devenv.nix b/devenv.nix index afec0c5ff..5d5d94f40 100644 --- a/devenv.nix +++ b/devenv.nix @@ -102,7 +102,7 @@ }; scripts."devenv-generate-doc-css" = { description = "Generate CSS for the docs."; - exec = "${lib.getExe pkgs.tailwindcss} build -i docs/assets/extra.css -o docs/assets/output.css"; + exec = "${lib.getExe pkgs.tailwindcss} -m -i docs/assets/extra.css -o docs/assets/output.css"; }; scripts."devenv-generate-doc-options" = { description = "Generate option docs."; @@ -224,10 +224,7 @@ EOF pre-commit.hooks = { nixpkgs-fmt.enable = true; - #shellcheck.enable = true; - #clippy.enable = true; rustfmt.enable = true; - #markdownlint.enable = true; markdownlint.settings.configuration = { MD013 = { line_length = 120; @@ -239,6 +236,7 @@ EOF enable = true; name = "generate-doc-css"; entry = config.scripts."devenv-generate-doc-css".exec; + files = "docs/assets/extra.css"; }; }; } diff --git a/devenv/src/flake.tmpl.nix b/devenv/src/flake.tmpl.nix index 0449a54f9..8825cc712 100644 --- a/devenv/src/flake.tmpl.nix +++ b/devenv/src/flake.tmpl.nix @@ -6,7 +6,7 @@ git-hooks.url = "github:cachix/git-hooks.nix"; git-hooks.inputs.nixpkgs.follows = "nixpkgs"; pre-commit-hooks.follows = "git-hooks"; - nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling"; + nixpkgs.url = "github:cachix/devenv-nixpkgs/bump-rolling"; devenv.url = "github:cachix/devenv?dir=src/modules"; } // (if builtins.pathExists (devenv_dotfile + "/flake.json") then builtins.fromJSON (builtins.readFile (devenv_dotfile + "/flake.json")) diff --git a/docs/assets/output.css b/docs/assets/output.css index 1da7c9765..4abcea394 100644 --- a/docs/assets/output.css +++ b/docs/assets/output.css @@ -1,1036 +1 @@ -/* -! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com -*/ - -/* -1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) -2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) -*/ - -*, -::before, -::after { - box-sizing: border-box; - /* 1 */ - border-width: 0; - /* 2 */ - border-style: solid; - /* 2 */ - border-color: #e5e7eb; - /* 2 */ -} - -::before, -::after { - --tw-content: ''; -} - -/* -1. Use a consistent sensible line-height in all browsers. -2. Prevent adjustments of font size after orientation changes in iOS. -3. Use a more readable tab size. -4. Use the user's configured `sans` font-family by default. -5. Use the user's configured `sans` font-feature-settings by default. -6. Use the user's configured `sans` font-variation-settings by default. -7. Disable tap highlights on iOS -*/ - -html, -:host { - line-height: 1.5; - /* 1 */ - -webkit-text-size-adjust: 100%; - /* 2 */ - -moz-tab-size: 4; - /* 3 */ - -o-tab-size: 4; - tab-size: 4; - /* 3 */ - font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; - /* 4 */ - font-feature-settings: normal; - /* 5 */ - font-variation-settings: normal; - /* 6 */ - -webkit-tap-highlight-color: transparent; - /* 7 */ -} - -/* -1. Remove the margin in all browsers. -2. Inherit line-height from `html` so users can set them as a class directly on the `html` element. -*/ - -body { - margin: 0; - /* 1 */ - line-height: inherit; - /* 2 */ -} - -/* -1. Add the correct height in Firefox. -2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) -3. Ensure horizontal rules are visible by default. -*/ - -hr { - height: 0; - /* 1 */ - color: inherit; - /* 2 */ - border-top-width: 1px; - /* 3 */ -} - -/* -Add the correct text decoration in Chrome, Edge, and Safari. -*/ - -abbr:where([title]) { - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; -} - -/* -Remove the default font size and weight for headings. -*/ - -h1, -h2, -h3, -h4, -h5, -h6 { - font-size: inherit; - font-weight: inherit; -} - -/* -Reset links to optimize for opt-in styling instead of opt-out. -*/ - -a { - color: inherit; - text-decoration: inherit; -} - -/* -Add the correct font weight in Edge and Safari. -*/ - -b, -strong { - font-weight: bolder; -} - -/* -1. Use the user's configured `mono` font-family by default. -2. Use the user's configured `mono` font-feature-settings by default. -3. Use the user's configured `mono` font-variation-settings by default. -4. Correct the odd `em` font sizing in all browsers. -*/ - -code, -kbd, -samp, -pre { - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - /* 1 */ - font-feature-settings: normal; - /* 2 */ - font-variation-settings: normal; - /* 3 */ - font-size: 1em; - /* 4 */ -} - -/* -Add the correct font size in all browsers. -*/ - -small { - font-size: 80%; -} - -/* -Prevent `sub` and `sup` elements from affecting the line height in all browsers. -*/ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* -1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) -2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) -3. Remove gaps between table borders by default. -*/ - -table { - text-indent: 0; - /* 1 */ - border-color: inherit; - /* 2 */ - border-collapse: collapse; - /* 3 */ -} - -/* -1. Change the font styles in all browsers. -2. Remove the margin in Firefox and Safari. -3. Remove default padding in all browsers. -*/ - -button, -input, -optgroup, -select, -textarea { - font-family: inherit; - /* 1 */ - font-feature-settings: inherit; - /* 1 */ - font-variation-settings: inherit; - /* 1 */ - font-size: 100%; - /* 1 */ - font-weight: inherit; - /* 1 */ - line-height: inherit; - /* 1 */ - letter-spacing: inherit; - /* 1 */ - color: inherit; - /* 1 */ - margin: 0; - /* 2 */ - padding: 0; - /* 3 */ -} - -/* -Remove the inheritance of text transform in Edge and Firefox. -*/ - -button, -select { - text-transform: none; -} - -/* -1. Correct the inability to style clickable types in iOS and Safari. -2. Remove default button styles. -*/ - -button, -input:where([type='button']), -input:where([type='reset']), -input:where([type='submit']) { - -webkit-appearance: button; - /* 1 */ - background-color: transparent; - /* 2 */ - background-image: none; - /* 2 */ -} - -/* -Use the modern Firefox focus style for all focusable elements. -*/ - -:-moz-focusring { - outline: auto; -} - -/* -Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) -*/ - -:-moz-ui-invalid { - box-shadow: none; -} - -/* -Add the correct vertical alignment in Chrome and Firefox. -*/ - -progress { - vertical-align: baseline; -} - -/* -Correct the cursor style of increment and decrement buttons in Safari. -*/ - -::-webkit-inner-spin-button, -::-webkit-outer-spin-button { - height: auto; -} - -/* -1. Correct the odd appearance in Chrome and Safari. -2. Correct the outline style in Safari. -*/ - -[type='search'] { - -webkit-appearance: textfield; - /* 1 */ - outline-offset: -2px; - /* 2 */ -} - -/* -Remove the inner padding in Chrome and Safari on macOS. -*/ - -::-webkit-search-decoration { - -webkit-appearance: none; -} - -/* -1. Correct the inability to style clickable types in iOS and Safari. -2. Change font properties to `inherit` in Safari. -*/ - -::-webkit-file-upload-button { - -webkit-appearance: button; - /* 1 */ - font: inherit; - /* 2 */ -} - -/* -Add the correct display in Chrome and Safari. -*/ - -summary { - display: list-item; -} - -/* -Removes the default spacing and border for appropriate elements. -*/ - -blockquote, -dl, -dd, -h1, -h2, -h3, -h4, -h5, -h6, -hr, -figure, -p, -pre { - margin: 0; -} - -fieldset { - margin: 0; - padding: 0; -} - -legend { - padding: 0; -} - -ol, -ul, -menu { - list-style: none; - margin: 0; - padding: 0; -} - -/* -Reset default styling for dialogs. -*/ - -dialog { - padding: 0; -} - -/* -Prevent resizing textareas horizontally by default. -*/ - -textarea { - resize: vertical; -} - -/* -1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) -2. Set the default placeholder color to the user's configured gray 400 color. -*/ - -input::-moz-placeholder, textarea::-moz-placeholder { - opacity: 1; - /* 1 */ - color: #9ca3af; - /* 2 */ -} - -input::placeholder, -textarea::placeholder { - opacity: 1; - /* 1 */ - color: #9ca3af; - /* 2 */ -} - -/* -Set the default cursor for buttons. -*/ - -button, -[role="button"] { - cursor: pointer; -} - -/* -Make sure disabled buttons don't get the pointer cursor. -*/ - -:disabled { - cursor: default; -} - -/* -1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14) -2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) - This can trigger a poorly considered lint error in some tools but is included by design. -*/ - -img, -svg, -video, -canvas, -audio, -iframe, -embed, -object { - display: block; - /* 1 */ - vertical-align: middle; - /* 2 */ -} - -/* -Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) -*/ - -img, -video { - max-width: 100%; - height: auto; -} - -/* Make elements with the HTML hidden attribute stay hidden by default */ - -[hidden] { - display: none; -} - -html { - font-size: 20px; -} - -*, ::before, ::after { - --tw-border-spacing-x: 0; - --tw-border-spacing-y: 0; - --tw-translate-x: 0; - --tw-translate-y: 0; - --tw-rotate: 0; - --tw-skew-x: 0; - --tw-skew-y: 0; - --tw-scale-x: 1; - --tw-scale-y: 1; - --tw-pan-x: ; - --tw-pan-y: ; - --tw-pinch-zoom: ; - --tw-scroll-snap-strictness: proximity; - --tw-gradient-from-position: ; - --tw-gradient-via-position: ; - --tw-gradient-to-position: ; - --tw-ordinal: ; - --tw-slashed-zero: ; - --tw-numeric-figure: ; - --tw-numeric-spacing: ; - --tw-numeric-fraction: ; - --tw-ring-inset: ; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-color: rgb(59 130 246 / 0.5); - --tw-ring-offset-shadow: 0 0 #0000; - --tw-ring-shadow: 0 0 #0000; - --tw-shadow: 0 0 #0000; - --tw-shadow-colored: 0 0 #0000; - --tw-blur: ; - --tw-brightness: ; - --tw-contrast: ; - --tw-grayscale: ; - --tw-hue-rotate: ; - --tw-invert: ; - --tw-saturate: ; - --tw-sepia: ; - --tw-drop-shadow: ; - --tw-backdrop-blur: ; - --tw-backdrop-brightness: ; - --tw-backdrop-contrast: ; - --tw-backdrop-grayscale: ; - --tw-backdrop-hue-rotate: ; - --tw-backdrop-invert: ; - --tw-backdrop-opacity: ; - --tw-backdrop-saturate: ; - --tw-backdrop-sepia: ; - --tw-contain-size: ; - --tw-contain-layout: ; - --tw-contain-paint: ; - --tw-contain-style: ; -} - -::backdrop { - --tw-border-spacing-x: 0; - --tw-border-spacing-y: 0; - --tw-translate-x: 0; - --tw-translate-y: 0; - --tw-rotate: 0; - --tw-skew-x: 0; - --tw-skew-y: 0; - --tw-scale-x: 1; - --tw-scale-y: 1; - --tw-pan-x: ; - --tw-pan-y: ; - --tw-pinch-zoom: ; - --tw-scroll-snap-strictness: proximity; - --tw-gradient-from-position: ; - --tw-gradient-via-position: ; - --tw-gradient-to-position: ; - --tw-ordinal: ; - --tw-slashed-zero: ; - --tw-numeric-figure: ; - --tw-numeric-spacing: ; - --tw-numeric-fraction: ; - --tw-ring-inset: ; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-color: rgb(59 130 246 / 0.5); - --tw-ring-offset-shadow: 0 0 #0000; - --tw-ring-shadow: 0 0 #0000; - --tw-shadow: 0 0 #0000; - --tw-shadow-colored: 0 0 #0000; - --tw-blur: ; - --tw-brightness: ; - --tw-contrast: ; - --tw-grayscale: ; - --tw-hue-rotate: ; - --tw-invert: ; - --tw-saturate: ; - --tw-sepia: ; - --tw-drop-shadow: ; - --tw-backdrop-blur: ; - --tw-backdrop-brightness: ; - --tw-backdrop-contrast: ; - --tw-backdrop-grayscale: ; - --tw-backdrop-hue-rotate: ; - --tw-backdrop-invert: ; - --tw-backdrop-opacity: ; - --tw-backdrop-saturate: ; - --tw-backdrop-sepia: ; - --tw-contain-size: ; - --tw-contain-layout: ; - --tw-contain-paint: ; - --tw-contain-style: ; -} - -.container { - width: 100%; -} - -@media (min-width: 640px) { - .container { - max-width: 640px; - } -} - -@media (min-width: 768px) { - .container { - max-width: 768px; - } -} - -@media (min-width: 1024px) { - .container { - max-width: 1024px; - } -} - -@media (min-width: 1280px) { - .container { - max-width: 1280px; - } -} - -@media (min-width: 1536px) { - .container { - max-width: 1536px; - } -} - -.language-shell::before { - content: attr(data-shell-prefix); - margin-inline-end: 0.4rem; - --tw-text-opacity: 1; - color: rgb(147 197 253 / var(--tw-text-opacity)); -} - -.static { - position: static; -} - -.relative { - position: relative; -} - -.isolate { - isolation: isolate; -} - -.mx-auto { - margin-left: auto; - margin-right: auto; -} - -.mb-6 { - margin-bottom: 1.2rem; -} - -.mt-10 { - margin-top: 2rem; -} - -.mt-2 { - margin-top: 0.4rem; -} - -.mt-4 { - margin-top: 0.8rem; -} - -.mt-6 { - margin-top: 1.2rem; -} - -.block { - display: block; -} - -.inline { - display: inline; -} - -.flex { - display: flex; -} - -.grid { - display: grid; -} - -.h-8 { - height: 1.6rem; -} - -.max-w-2xl { - max-width: 33.6rem; -} - -.max-w-3xl { - max-width: 38.4rem; -} - -.max-w-7xl { - max-width: 64rem; -} - -.max-w-xl { - max-width: 28.8rem; -} - -.grid-cols-1 { - grid-template-columns: repeat(1, minmax(0, 1fr)); -} - -.items-center { - align-items: center; -} - -.justify-center { - justify-content: center; -} - -.gap-x-6 { - -moz-column-gap: 1.2rem; - column-gap: 1.2rem; -} - -.gap-x-8 { - -moz-column-gap: 1.6rem; - column-gap: 1.6rem; -} - -.gap-y-16 { - row-gap: 3.2rem; -} - -.space-y-8 > :not([hidden]) ~ :not([hidden]) { - --tw-space-y-reverse: 0; - margin-top: calc(1.6rem * calc(1 - var(--tw-space-y-reverse))); - margin-bottom: calc(1.6rem * var(--tw-space-y-reverse)); -} - -.overflow-hidden { - overflow: hidden; -} - -.truncate { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.rounded-md { - border-radius: 0.3rem; -} - -.rounded-b-xl { - border-bottom-right-radius: 0.6rem; - border-bottom-left-radius: 0.6rem; -} - -.border-b { - border-bottom-width: 1px; -} - -.border-r { - border-right-width: 1px; -} - -.border-t { - border-top-width: 1px; -} - -.border-b-white\/20 { - border-bottom-color: rgb(255 255 255 / 0.2); -} - -.border-r-white\/10 { - border-right-color: rgb(255 255 255 / 0.1); -} - -.border-t-white\/20 { - border-top-color: rgb(255 255 255 / 0.2); -} - -.bg-black { - --tw-bg-opacity: 1; - background-color: rgb(0 0 0 / var(--tw-bg-opacity)); -} - -.bg-gray-100 { - --tw-bg-opacity: 1; - background-color: rgb(243 244 246 / var(--tw-bg-opacity)); -} - -.bg-gray-800\/40 { - background-color: rgb(31 41 55 / 0.4); -} - -.bg-gray-900 { - --tw-bg-opacity: 1; - background-color: rgb(17 24 39 / var(--tw-bg-opacity)); -} - -.bg-white { - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - -.bg-white\/5 { - background-color: rgb(255 255 255 / 0.05); -} - -.p-1 { - padding: 0.2rem; -} - -.px-2 { - padding-left: 0.4rem; - padding-right: 0.4rem; -} - -.px-3 { - padding-left: 0.6rem; - padding-right: 0.6rem; -} - -.px-3\.5 { - padding-left: 0.7rem; - padding-right: 0.7rem; -} - -.px-4 { - padding-left: 0.8rem; - padding-right: 0.8rem; -} - -.py-14 { - padding-top: 2.8rem; - padding-bottom: 2.8rem; -} - -.py-2 { - padding-top: 0.4rem; - padding-bottom: 0.4rem; -} - -.py-2\.5 { - padding-top: 0.5rem; - padding-bottom: 0.5rem; -} - -.py-8 { - padding-top: 1.6rem; - padding-bottom: 1.6rem; -} - -.pt-14 { - padding-top: 2.8rem; -} - -.text-center { - text-align: center; -} - -.text-2xl { - font-size: 1.2rem; - line-height: 1.6rem; -} - -.text-3xl { - font-size: 1.5rem; - line-height: 1.8rem; -} - -.text-base { - font-size: 0.8rem; - line-height: 1.2rem; -} - -.text-lg { - font-size: 0.9rem; - line-height: 1.4rem; -} - -.text-sm { - font-size: 0.7rem; - line-height: 1rem; -} - -.text-xl { - font-size: 1rem; - line-height: 1.4rem; -} - -.font-bold { - font-weight: 700; -} - -.font-medium { - font-weight: 500; -} - -.font-semibold { - font-weight: 600; -} - -.leading-6 { - line-height: 1.2rem; -} - -.leading-7 { - line-height: 1.4rem; -} - -.leading-8 { - line-height: 1.6rem; -} - -.tracking-tight { - letter-spacing: -0.025em; -} - -.text-\[\#425C82\] { - --tw-text-opacity: 1; - color: rgb(66 92 130 / var(--tw-text-opacity)); -} - -.text-black { - --tw-text-opacity: 1; - color: rgb(0 0 0 / var(--tw-text-opacity)); -} - -.text-gray-200 { - --tw-text-opacity: 1; - color: rgb(229 231 235 / var(--tw-text-opacity)); -} - -.text-gray-600 { - --tw-text-opacity: 1; - color: rgb(75 85 99 / var(--tw-text-opacity)); -} - -.text-gray-800 { - --tw-text-opacity: 1; - color: rgb(31 41 55 / var(--tw-text-opacity)); -} - -.text-gray-900 { - --tw-text-opacity: 1; - color: rgb(17 24 39 / var(--tw-text-opacity)); -} - -.text-white { - --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); -} - -.shadow-sm { - --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); - --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.filter { - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -/* mobile make code snippets scrollable */ - -.image-wrapper { - overflow: auto!important; -} - -/* add some whitespace under hero CTA button */ - -.md-main__inner { - padding-bottom: 1rem; -} - -.hover\:to-\[\#425C82\]:hover { - --tw-gradient-to: #425C82 var(--tw-gradient-to-position); -} - -.focus-visible\:outline:focus-visible { - outline-style: solid; -} - -.focus-visible\:outline-2:focus-visible { - outline-width: 2px; -} - -.focus-visible\:outline-offset-2:focus-visible { - outline-offset: 2px; -} - -.focus-visible\:outline-indigo-400:focus-visible { - outline-color: #818cf8; -} - -@media (min-width: 640px) { - .sm\:mx-0 { - margin-left: 0px; - margin-right: 0px; - } - - .sm\:mx-auto { - margin-left: auto; - margin-right: auto; - } - - .sm\:max-w-2xl { - max-width: 33.6rem; - } - - .sm\:max-w-none { - max-width: none; - } - - .sm\:gap-y-20 { - row-gap: 4rem; - } - - .sm\:text-4xl { - font-size: 1.8rem; - line-height: 2rem; - } -} - -@media (min-width: 768px) { - .md\:px-6 { - padding-left: 1.2rem; - padding-right: 1.2rem; - } -} - -@media (min-width: 1024px) { - .lg\:mx-0 { - margin-left: 0px; - margin-right: 0px; - } - - .lg\:max-w-lg { - max-width: 25.6rem; - } - - .lg\:max-w-none { - max-width: none; - } - - .lg\:grid-cols-2 { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } - - .lg\:items-start { - align-items: flex-start; - } - - .lg\:px-0 { - padding-left: 0px; - padding-right: 0px; - } - - .lg\:px-8 { - padding-left: 1.6rem; - padding-right: 1.6rem; - } - - .lg\:pl-3 { - padding-left: 0.6rem; - } -} +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.14 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}html{font-size:20px}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.language-shell:before{content:attr(data-shell-prefix);margin-inline-end:.4rem;--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity))}.static{position:static}.relative{position:relative}.isolate{isolation:isolate}.mx-auto{margin-left:auto;margin-right:auto}.mb-6{margin-bottom:1.2rem}.mt-10{margin-top:2rem}.mt-2{margin-top:.4rem}.mt-4{margin-top:.8rem}.mt-6{margin-top:1.2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.h-8{height:1.6rem}.max-w-2xl{max-width:33.6rem}.max-w-3xl{max-width:38.4rem}.max-w-7xl{max-width:64rem}.max-w-xl{max-width:28.8rem}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.gap-x-6{-moz-column-gap:1.2rem;column-gap:1.2rem}.gap-x-8{-moz-column-gap:1.6rem;column-gap:1.6rem}.gap-y-16{row-gap:3.2rem}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.6rem*var(--tw-space-y-reverse));margin-top:calc(1.6rem*(1 - var(--tw-space-y-reverse)))}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis;white-space:nowrap}.rounded-md{border-radius:.3rem}.rounded-b-xl{border-bottom-left-radius:.6rem;border-bottom-right-radius:.6rem}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-b-white\/20{border-bottom-color:hsla(0,0%,100%,.2)}.border-r-white\/10{border-right-color:hsla(0,0%,100%,.1)}.border-t-white\/20{border-top-color:hsla(0,0%,100%,.2)}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-800\/40{background-color:rgba(31,41,55,.4)}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/5{background-color:hsla(0,0%,100%,.05)}.p-1{padding:.2rem}.px-2{padding-left:.4rem;padding-right:.4rem}.px-3\.5{padding-left:.7rem;padding-right:.7rem}.px-4{padding-left:.8rem;padding-right:.8rem}.py-14{padding-bottom:2.8rem;padding-top:2.8rem}.py-2\.5{padding-bottom:.5rem;padding-top:.5rem}.py-8{padding-bottom:1.6rem;padding-top:1.6rem}.pt-14{padding-top:2.8rem}.text-center{text-align:center}.text-2xl{font-size:1.2rem;line-height:1.6rem}.text-3xl{font-size:1.5rem;line-height:1.8rem}.text-base{font-size:.8rem;line-height:1.2rem}.text-lg{font-size:.9rem;line-height:1.4rem}.text-sm{font-size:.7rem;line-height:1rem}.text-xl{font-size:1rem;line-height:1.4rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.2rem}.leading-7{line-height:1.4rem}.leading-8{line-height:1.6rem}.tracking-tight{letter-spacing:-.025em}.text-\[\#425C82\]{--tw-text-opacity:1;color:rgb(66 92 130/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.image-wrapper{overflow:auto!important}.md-main__inner{padding-bottom:1rem}.hover\:to-\[\#425C82\]:hover{--tw-gradient-to:#425c82 var(--tw-gradient-to-position)}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-indigo-400:focus-visible{outline-color:#818cf8}@media (min-width:640px){.sm\:mx-0{margin-left:0;margin-right:0}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:max-w-2xl{max-width:33.6rem}.sm\:max-w-none{max-width:none}.sm\:gap-y-20{row-gap:4rem}.sm\:text-4xl{font-size:1.8rem;line-height:2rem}}@media (min-width:768px){.md\:px-6{padding-left:1.2rem;padding-right:1.2rem}}@media (min-width:1024px){.lg\:mx-0{margin-left:0;margin-right:0}.lg\:max-w-lg{max-width:25.6rem}.lg\:max-w-none{max-width:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:items-start{align-items:flex-start}.lg\:px-0{padding-left:0;padding-right:0}.lg\:px-8{padding-left:1.6rem;padding-right:1.6rem}.lg\:pl-3{padding-left:.6rem}} \ No newline at end of file diff --git a/docs/overrides/home.html b/docs/overrides/home.html index 57078f6a9..f0fcf5723 100644 --- a/docs/overrides/home.html +++ b/docs/overrides/home.html @@ -1,117 +1,181 @@ -{% extends "main.html" %} - -{% block styles %} -{{ super () }} - +{% extends "main.html" %} {% block styles %} {{ super () }} + -{% endblock %} - -{% block hero %} +{% endblock %} {% block hero %}
-
-
-

Fast, Declarative, Reproducible and Composable - Developer Environments using Nix

-

- Develop natively - • Deploy containers - • 100.000+ packages - • Write scripts and - tasks - • 50+ supported languages - • Define processes - • Reuse services - • Run tests - • Enforce git hooks -

- +
+
+

+ Fast, Declarative, Reproducible and Composable Developer + Environments using Nix +

+

+ Develop + natively + • Deploy + containers + • 100.000+ + packages + • Write + scripts + and + tasks + • 50+ + supported languages + • Define + processes + • Reuse + services + • Run + tests • + Enforce + git hooks +

+ +
-
-
-
-
-
-
-

Simple JSON-like language

-

- Declaratively define your development environment by toggling basic options. -

-
-
- Environment variables. -
-
- Use env attribute set to define environment variables. - -

If you'd like to also include secrets from .env - file, set dotenv.enable = true;.

-
-
-
-
- Packages. -
-
- Pick from 80000+ prebuilt packages for - Linux/macOS and X64/Arm64. Works with WSL2. -
-
-
- Run script(s) when entering the environment. -
-
- Prepare your environment when entering the shell that has environment already loaded. -
-
-
-
- Automatically load the environment when entering the project. -
-
- Using direnv will automatically load the environment when you enter the project - directory. -
-
-
-
-
-
-
-
-
-
-
-
- devenv.nix
+
+
+
+
+

+ Simple JSON-like language +

+

+ Declaratively define your development environment by + toggling basic options. +

+ +
+
+
+ Environment variables. +
+
+ Use + env + attribute set to define environment variables. + +

+ If you'd like to also include secrets from + .env + file, set + dotenv.enable = true;. +

+
+
+
+
+ Packages. +
+
+ Pick from + 80000+ prebuilt packages for + Linux/macOS and + X64/Arm64. Works with + WSL2. +
+
+
+
+ Run script(s) when entering the environment. +
+
+ Prepare your environment when entering the shell + that has environment already loaded. +
+
+
+
+ Automatically load the environment when entering + the project. +
+
+ Using + direnv will + automatically load the environment when you + enter the project directory. +
+
+
-
-
{ pkgs, config, ... }: {
+            
+
+
+
+
+
+
+
+ devenv.nix +
+
+
+
{ pkgs, config, ... }: {
   env.GREET = "determinism";
 
   packages = [
@@ -124,37 +188,49 @@ 

Fast, Decla ''; }

-
-
+
+
-
-
devenv shell
+                    
+
devenv shell
 hello determinism
 ncdu 2.3
 
 
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- devenv.nix -
-
-
-
{ pkgs, ... }: {
+    
+
+
+
+
+
+
+
+
+ devenv.nix +
+
+
+
{ pkgs, ... }: {
   packages = [ pkgs.yarn ];
 
   scripts.build.exec = "yarn build";
@@ -176,11 +252,15 @@ 

Fast, Decla }; }

-
-
+
+
-
-
devenv shell
+                    
+
devenv shell
 ...
 Running tasks     devenv:enterShell
 Succeeded         devenv:git-hooks:install 15ms
@@ -190,68 +270,114 @@ 

Fast, Decla $

-
-
-
- -
-
-

Scripts and Tasks

-

- Define scripts, tasks and - git hooks - to automate your development workflow. -

-
-
- Scripts. -
-
- Define scripts that can be invoked inside the environment, using all the packages and environment - variables. -
-
-
-
- Tasks. -
-
- Form dependencies between automation code, executed in parallel and written in your favorite language. -
+
+
-
-
- Git hooks. -
-
- Pick from builtin and language specific linters and formatters using git-hooks.nix. + +
+
+

+ Scripts and Tasks +

+

+ Define + scripts, + tasks + and + git hooks + to automate your development workflow. +

+ +
+
+
+ Scripts. +
+
+ Define scripts that can be invoked inside the + environment, using all the packages and + environment variables. +
+
+
+
+ Tasks. +
+
+ Form dependencies between automation code, + executed in parallel and written in your + favorite language. +
+
+
+
+ Git hooks. +
+
+ Pick from builtin and language specific linters + and formatters using + git-hooks.nix. +
+
+
+
-
-
-
-
-
-
-
-

Search packages and options

-

- Explore packages and options to customize your - environment. -

-
+
+
+
+
+

+ Search packages and options +

+

+ Explore + packages + and + options + to customize your environment. +

+
+
-
-
-
-
devenv search devenv
+            
+
+
+
devenv search devenv
 +--------------+---------------+------------------------------------------------------------------------+
 | Package      | Version       | Description                                                            |
 +--------------+---------------+------------------------------------------------------------------------+
@@ -268,60 +394,91 @@ 

Fast, Decla +--------------------------+---------+-----------+------------------------------------------------------------+ • Found 1 package and 3 options for 'devenv'.

-
+
+
+
-
-
-
-
-
-
-

Languages

-

- Supports over 50 programming languages. -

-
-
- Packed with tooling. -
-
- Comes with commonly used tooling for each language. Including LSP servers, formatters, linters, and - compilers. -
-
-
-
- Version support. -
-
- Languages like Python, Terraform, Rust, PHP and Ruby all have version support. -
-
-
- Examples -
-
- Checkout examples collection - to get started. -
-
-
-
-
-
-
-
-
-
-
- devenv.nix
+
+
+
+
+

+ Languages +

+

+ Supports over 50 + programming languages. +

+ +
+
+
+ Packed with tooling. +
+
+ Comes with commonly used tooling for each + language. Including LSP servers, formatters, + linters, and compilers. +
+
+
+
+ Version support. +
+
+ Languages like Python, Terraform, Rust, PHP and + Ruby all have version support. +
+
+
+
+ Examples +
+
+ Checkout + examples collection + to get started. +
+
+
-
-
{ pkgs, config, ... }: {
+            
+
+
+
+
+
+
+
+ devenv.nix +
+
+
+
{ pkgs, config, ... }: {
   languages.python = {
     enable = true;
     version = "3.11";
@@ -354,140 +511,208 @@ 

Fast, Decla }; }

+
+
+
-
-
-
-
-
- -
-
-
-
-
-
-
- devenv.nix
-
-
-
{ pkgs, ... }: {
-  packages = [
-    pkgs.mkdocs
-    pkgs.watchexec
-  ];
+    
+
+
+
+
+
+
+
+
+ devenv.nix +
+
+
+
{ pkgs, ... }: {
+    packages = [
+        pkgs.cargo-watch
+    ];
 
-  processes = {
-    docs.exec = "mkdocs serve";
-    tailwind.exec = "watchexec -e html,css,js npx tailwindcss build extra.css -o output.css";
-  };
+    processes = {
+        cargo-watch.exec = "cargo watch -x run";
+    };
 }
 
-
-
+
+
-
-
devenv up
+                    
+
devenv up
 • Building processes ...
 • Starting processes ...
 ...
 
 
-
-
-
- -
-
-

Run processes

-

- Define your processes in a declarative way - and start them with devenv up. -

-
-
- Processes -
-
- Inspired by Procfile, declare development processes that have - access to your environment. -
+
+
-
-
- process-compose -
-
- By default process-compose is used to manage processes, - giving you a - simple interface to inspect logs and restart processes (ctrl-r). - + +
+
+

+ Run processes +

+

+ Define your + processes in a declarative way + and start them with + devenv up. +

+ +
+
+
+ Processes +
+
+ Inspired by + Procfile, + declare development processes that have access + to your environment. +
+
+
+
+ process-compose +
+
+ By default + process-compose + is used to manage processes, giving you a simple + interface to inspect logs and restart processes + (ctrl-r). + +
+
+
+
-
-
-
-
-
-
-
-

Run services

-

- Pick from a number of community maintained - services like PostgreSQL, Redis, MySQL, - RabbitMQ, WireMock, MinIO, Caddy, ElasticSearch, OpenTelemetry Collector, and more are being added each day. -

-
-
- Pre-configured processes -
-
- Services define processes that are started when the service is enabled as part of devenv up. -
-
-
-
- Configuration -
-
- Each service provides a number of options how to configure it and a hook to pass extra configuration, - whatever the format. -
-
-
- Extendable -
-
- Define your development processes as a service, allowing reuse and simplicity of a few lines of - configuration. -
-
-
-
-
-
-
-
-
-
-
-
- devenv.nix
+
+
+
+
+

+ Run services +

+

+ Pick from a number of community maintained + services + like + PostgreSQL, Redis, MySQL, RabbitMQ, WireMock, + MinIO, Caddy, ElasticSearch, OpenTelemetry + Collector, and + more are being added + each day. +

+ +
+
+
+ Pre-configured processes +
+
+ Services define processes that are started when + the service is enabled as part of + devenv up. +
+
+
+
+ Configuration +
+
+ Each service provides a number of options how to + configure it and a hook to pass extra + configuration, whatever the format. +
+
+
+
+ Extendable +
+
+ Define your development processes as a service, + allowing reuse and simplicity of a few lines of + configuration. +
+
+
-
-
{ pkgs, ... }: {
+            
+
+
+
+
+
+
+
+ devenv.nix +
+
+
+
{ pkgs, ... }: {
   services.postgres = {
     enable = true;
     package = pkgs.postgresql_15;
@@ -501,35 +726,48 @@ 

Fast, Decla }; }

-
-
+
+
-
-
devenv up
+                    
+
devenv up
 ...
 
 
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- devenv.nix
-
-
-
{ pkgs, ... }: {
+    
+
+
+
+
+
+
+
+
+ devenv.nix +
+
+
+
{ pkgs, ... }: {
   packages = [
     pkgs.mkdocs
     pkgs.curl
@@ -546,98 +784,162 @@ 

Fast, Decla }

-
-
+
+
-
-
devenv test
+                    
+
devenv test
 ...
 
 
-
-
-
- -
-
-

Run tests

-

- Running a script inside your development environment - with all processes running should be as simple as devenv test. -

-
-
- enterTest -
-
- Execute your favorite language test runner or a simple script to verify your environment. - -

All process management is taken care for you.

-
+
+
+
+ +
+
+

+ Run tests +

+

+ Running + a script inside your development environment with + all processes running + should be as simple as + devenv test. +

+ +
+
+
+ enterTest +
+
+ Execute your favorite language test runner or a + simple script to verify your environment. + +

+ All process management is taken care for + you. +

+
+
+
+
-
-
-
-
-
-
-
-

Container interoperability

-

- Generate containers from your development - environment and build/copy/run them. -

-
-
- Containerize your environment. -
-
- shell container allows you to run your environment in a container. - -

Use devenv container run shell to enter your - environment in a container.

-
-
-
-
- Containerize your processes. -
-
- processes container allows you to run your processes in a - container. - -

Use devenv container run processes to run your - processes in a container.

-
-
-
- Custom containers. -
-
- Define containers.mycontainer.* to customize your container. -
-
+
+
+
+
+

+ Container interoperability +

+

+ Generate containers + from your development environment and build/copy/run + them. +

-
-
-
-
-
-
-
-
-
-
- devenv.nix
+
+
+
+ Containerize your environment. +
+
+ shell + container allows you to run your environment in + a container. + +

+ Use + devenv container run shell + to enter your environment in a container. +

+
+
+
+
+ Containerize your processes. +
+
+ processes + container allows you to run your processes in a + container. + +

+ Use + devenv container run processes + to run your processes in a container. +

+
+
+
+
+ Custom containers. +
+
+ Define + containers.mycontainer.* + to + customize your container. +
+
+
-
-
{ pkgs, ... }: {
+            
+
+
+
+
+
+
+
+ devenv.nix +
+
+
+
{ pkgs, ... }: {
   packages = [
     pkgs.mkdocs
     pkgs.curl
@@ -649,11 +951,15 @@ 

Fast, Decla }

-
-
+
+
-
-
devenv container build processes
+                    
+
devenv container build processes
 ...
 devenv container copy processes
 ...
@@ -661,27 +967,36 @@ 

Fast, Decla ...

-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- devenv.yaml
-
-
-
inputs:
+    
+
+
+
+
+
+
+
+
+ devenv.yaml +
+
+
+
inputs:
   myorg-devenv:
     url: github:myorg/myorg-devenv
 imports:
@@ -690,53 +1005,75 @@ 

Fast, Decla - myorg-devenv/service1 - myorg-devenv/service2

+
+
+
-
-
-
- -
-
-

Poly/Mono repo composability

-

- Compose multiple environments - into a single environment. -

-
-
- Local imports -
-
- If you're working on a monorepo, define environment per folder and import them to merge them into a - single environment. -
-
-
-
- Remote imports -
-
- If you're working on a polyrepo, define environment per repository and import them to merge them into a - single environment. - -

A great way to get started is to use central repository with all the shared - configuration until your team is comfortable - maintaining their own environments.

+ +
+
+

+ Poly/Mono repo composability +

+

+ Compose multiple environments + into a single environment. +

+ +
+
+
+ Local imports +
+
+ If you're working on a monorepo, define + environment per folder and import them to merge + them into a single environment. +
+
+
+
+ Remote imports +
+
+ If you're working on a polyrepo, define + environment per repository and import them to + merge them into a single environment. + +

+ A great way to get started is to use central + repository with all the shared configuration + until your team is comfortable maintaining + their own environments. +

+
+
+
+
-
-
-
-

Built by

- +

Built by

+
- + {% endblock %} @@ -744,6 +1081,4 @@

Built by

{% block content %}{% endblock %} -{% block footer %} -{{ super() }} -{% endblock %} +{% block footer %} {{ super() }} {% endblock %} diff --git a/docs/reference/options.md b/docs/reference/options.md index 85abcd61c..362373d62 100644 --- a/docs/reference/options.md +++ b/docs/reference/options.md @@ -33937,7 +33937,7 @@ boolean *Default:* -` true ` +` false ` *Declared by:* - [https://github.com/cachix/devenv/blob/main/src/modules/languages/python.nix](https://github.com/cachix/devenv/blob/main/src/modules/languages/python.nix) @@ -68859,7 +68859,7 @@ package *Default:* -` pkgs.mongodb ` +` pkgs.mongodb-ce ` *Declared by:* - [https://github.com/cachix/devenv/blob/main/src/modules/services/mongodb.nix](https://github.com/cachix/devenv/blob/main/src/modules/services/mongodb.nix) diff --git a/docs/supported-languages/python.md b/docs/supported-languages/python.md index 88940c54b..749344adf 100644 --- a/docs/supported-languages/python.md +++ b/docs/supported-languages/python.md @@ -108,7 +108,7 @@ boolean *Default:* -` true ` +` false ` diff --git a/docs/supported-services/mongodb.md b/docs/supported-services/mongodb.md index 04e27ae4d..09e49cd66 100644 --- a/docs/supported-services/mongodb.md +++ b/docs/supported-services/mongodb.md @@ -40,7 +40,7 @@ package *Default:* -` pkgs.mongodb ` +` pkgs.mongodb-ce ` diff --git a/examples/go/devenv.yaml b/examples/go/devenv.yaml index c9ed906e5..ad4cb6291 100644 --- a/examples/go/devenv.yaml +++ b/examples/go/devenv.yaml @@ -1,7 +1,5 @@ # yaml-language-server: $schema=https://devenv.sh/devenv.schema.json inputs: - nixpkgs: - url: github:cachix/devenv-nixpkgs/rolling gomod: url: github:nix-community/gomod2nix overlays: diff --git a/examples/python-poetry/poetry.lock b/examples/python-poetry/poetry.lock index 9697c9d88..ef821039e 100644 --- a/examples/python-poetry/poetry.lock +++ b/examples/python-poetry/poetry.lock @@ -1,44 +1,51 @@ +# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. + [[package]] name = "numpy" -version = "1.24.1" +version = "1.26.4" description = "Fundamental package for array computing in Python" -category = "main" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" +files = [ + {file = "numpy-1.26.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9ff0f4f29c51e2803569d7a51c2304de5554655a60c5d776e35b4a41413830d0"}, + {file = "numpy-1.26.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2e4ee3380d6de9c9ec04745830fd9e2eccb3e6cf790d39d7b98ffd19b0dd754a"}, + {file = "numpy-1.26.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d209d8969599b27ad20994c8e41936ee0964e6da07478d6c35016bc386b66ad4"}, + {file = "numpy-1.26.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ffa75af20b44f8dba823498024771d5ac50620e6915abac414251bd971b4529f"}, + {file = "numpy-1.26.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:62b8e4b1e28009ef2846b4c7852046736bab361f7aeadeb6a5b89ebec3c7055a"}, + {file = "numpy-1.26.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a4abb4f9001ad2858e7ac189089c42178fcce737e4169dc61321660f1a96c7d2"}, + {file = "numpy-1.26.4-cp310-cp310-win32.whl", hash = "sha256:bfe25acf8b437eb2a8b2d49d443800a5f18508cd811fea3181723922a8a82b07"}, + {file = "numpy-1.26.4-cp310-cp310-win_amd64.whl", hash = "sha256:b97fe8060236edf3662adfc2c633f56a08ae30560c56310562cb4f95500022d5"}, + {file = "numpy-1.26.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4c66707fabe114439db9068ee468c26bbdf909cac0fb58686a42a24de1760c71"}, + {file = "numpy-1.26.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:edd8b5fe47dab091176d21bb6de568acdd906d1887a4584a15a9a96a1dca06ef"}, + {file = "numpy-1.26.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7ab55401287bfec946ced39700c053796e7cc0e3acbef09993a9ad2adba6ca6e"}, + {file = "numpy-1.26.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:666dbfb6ec68962c033a450943ded891bed2d54e6755e35e5835d63f4f6931d5"}, + {file = "numpy-1.26.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:96ff0b2ad353d8f990b63294c8986f1ec3cb19d749234014f4e7eb0112ceba5a"}, + {file = "numpy-1.26.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:60dedbb91afcbfdc9bc0b1f3f402804070deed7392c23eb7a7f07fa857868e8a"}, + {file = "numpy-1.26.4-cp311-cp311-win32.whl", hash = "sha256:1af303d6b2210eb850fcf03064d364652b7120803a0b872f5211f5234b399f20"}, + {file = "numpy-1.26.4-cp311-cp311-win_amd64.whl", hash = "sha256:cd25bcecc4974d09257ffcd1f098ee778f7834c3ad767fe5db785be9a4aa9cb2"}, + {file = "numpy-1.26.4-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b3ce300f3644fb06443ee2222c2201dd3a89ea6040541412b8fa189341847218"}, + {file = "numpy-1.26.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:03a8c78d01d9781b28a6989f6fa1bb2c4f2d51201cf99d3dd875df6fbd96b23b"}, + {file = "numpy-1.26.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9fad7dcb1aac3c7f0584a5a8133e3a43eeb2fe127f47e3632d43d677c66c102b"}, + {file = "numpy-1.26.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:675d61ffbfa78604709862923189bad94014bef562cc35cf61d3a07bba02a7ed"}, + {file = "numpy-1.26.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:ab47dbe5cc8210f55aa58e4805fe224dac469cde56b9f731a4c098b91917159a"}, + {file = "numpy-1.26.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:1dda2e7b4ec9dd512f84935c5f126c8bd8b9f2fc001e9f54af255e8c5f16b0e0"}, + {file = "numpy-1.26.4-cp312-cp312-win32.whl", hash = "sha256:50193e430acfc1346175fcbdaa28ffec49947a06918b7b92130744e81e640110"}, + {file = "numpy-1.26.4-cp312-cp312-win_amd64.whl", hash = "sha256:08beddf13648eb95f8d867350f6a018a4be2e5ad54c8d8caed89ebca558b2818"}, + {file = "numpy-1.26.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:7349ab0fa0c429c82442a27a9673fc802ffdb7c7775fad780226cb234965e53c"}, + {file = "numpy-1.26.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:52b8b60467cd7dd1e9ed082188b4e6bb35aa5cdd01777621a1658910745b90be"}, + {file = "numpy-1.26.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d5241e0a80d808d70546c697135da2c613f30e28251ff8307eb72ba696945764"}, + {file = "numpy-1.26.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f870204a840a60da0b12273ef34f7051e98c3b5961b61b0c2c1be6dfd64fbcd3"}, + {file = "numpy-1.26.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:679b0076f67ecc0138fd2ede3a8fd196dddc2ad3254069bcb9faf9a79b1cebcd"}, + {file = "numpy-1.26.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:47711010ad8555514b434df65f7d7b076bb8261df1ca9bb78f53d3b2db02e95c"}, + {file = "numpy-1.26.4-cp39-cp39-win32.whl", hash = "sha256:a354325ee03388678242a4d7ebcd08b5c727033fcff3b2f536aea978e15ee9e6"}, + {file = "numpy-1.26.4-cp39-cp39-win_amd64.whl", hash = "sha256:3373d5d70a5fe74a2c1bb6d2cfd9609ecf686d47a2d7b1d37a8f3b6bf6003aea"}, + {file = "numpy-1.26.4-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:afedb719a9dcfc7eaf2287b839d8198e06dcd4cb5d276a3df279231138e83d30"}, + {file = "numpy-1.26.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:95a7476c59002f2f6c590b9b7b998306fba6a5aa646b1e22ddfeaf8f78c3a29c"}, + {file = "numpy-1.26.4-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:7e50d0a0cc3189f9cb0aeb3a6a6af18c16f59f004b866cd2be1c14b36134a4a0"}, + {file = "numpy-1.26.4.tar.gz", hash = "sha256:2a02aba9ed12e4ac4eb3ea9421c420301a0c6460d9830d74a9df87efa4912010"}, +] [metadata] -lock-version = "1.1" +lock-version = "2.0" python-versions = "^3.10" content-hash = "4c2505218626e7e6ed874319d095e221c5412d1b89019d7b2b919c8cb52e770e" - -[metadata.files] -numpy = [ - {file = "numpy-1.24.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:179a7ef0889ab769cc03573b6217f54c8bd8e16cef80aad369e1e8185f994cd7"}, - {file = "numpy-1.24.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b09804ff570b907da323b3d762e74432fb07955701b17b08ff1b5ebaa8cfe6a9"}, - {file = "numpy-1.24.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f1b739841821968798947d3afcefd386fa56da0caf97722a5de53e07c4ccedc7"}, - {file = "numpy-1.24.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0e3463e6ac25313462e04aea3fb8a0a30fb906d5d300f58b3bc2c23da6a15398"}, - {file = "numpy-1.24.1-cp310-cp310-win32.whl", hash = "sha256:b31da69ed0c18be8b77bfce48d234e55d040793cebb25398e2a7d84199fbc7e2"}, - {file = "numpy-1.24.1-cp310-cp310-win_amd64.whl", hash = "sha256:b07b40f5fb4fa034120a5796288f24c1fe0e0580bbfff99897ba6267af42def2"}, - {file = "numpy-1.24.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:7094891dcf79ccc6bc2a1f30428fa5edb1e6fb955411ffff3401fb4ea93780a8"}, - {file = "numpy-1.24.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:28e418681372520c992805bb723e29d69d6b7aa411065f48216d8329d02ba032"}, - {file = "numpy-1.24.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e274f0f6c7efd0d577744f52032fdd24344f11c5ae668fe8d01aac0422611df1"}, - {file = "numpy-1.24.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0044f7d944ee882400890f9ae955220d29b33d809a038923d88e4e01d652acd9"}, - {file = "numpy-1.24.1-cp311-cp311-win32.whl", hash = "sha256:442feb5e5bada8408e8fcd43f3360b78683ff12a4444670a7d9e9824c1817d36"}, - {file = "numpy-1.24.1-cp311-cp311-win_amd64.whl", hash = "sha256:de92efa737875329b052982e37bd4371d52cabf469f83e7b8be9bb7752d67e51"}, - {file = "numpy-1.24.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b162ac10ca38850510caf8ea33f89edcb7b0bb0dfa5592d59909419986b72407"}, - {file = "numpy-1.24.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:26089487086f2648944f17adaa1a97ca6aee57f513ba5f1c0b7ebdabbe2b9954"}, - {file = "numpy-1.24.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:caf65a396c0d1f9809596be2e444e3bd4190d86d5c1ce21f5fc4be60a3bc5b36"}, - {file = "numpy-1.24.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b0677a52f5d896e84414761531947c7a330d1adc07c3a4372262f25d84af7bf7"}, - {file = "numpy-1.24.1-cp38-cp38-win32.whl", hash = "sha256:dae46bed2cb79a58d6496ff6d8da1e3b95ba09afeca2e277628171ca99b99db1"}, - {file = "numpy-1.24.1-cp38-cp38-win_amd64.whl", hash = "sha256:6ec0c021cd9fe732e5bab6401adea5a409214ca5592cd92a114f7067febcba0c"}, - {file = "numpy-1.24.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:28bc9750ae1f75264ee0f10561709b1462d450a4808cd97c013046073ae64ab6"}, - {file = "numpy-1.24.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:84e789a085aabef2f36c0515f45e459f02f570c4b4c4c108ac1179c34d475ed7"}, - {file = "numpy-1.24.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8e669fbdcdd1e945691079c2cae335f3e3a56554e06bbd45d7609a6cf568c700"}, - {file = "numpy-1.24.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ef85cf1f693c88c1fd229ccd1055570cb41cdf4875873b7728b6301f12cd05bf"}, - {file = "numpy-1.24.1-cp39-cp39-win32.whl", hash = "sha256:87a118968fba001b248aac90e502c0b13606721b1343cdaddbc6e552e8dfb56f"}, - {file = "numpy-1.24.1-cp39-cp39-win_amd64.whl", hash = "sha256:ddc7ab52b322eb1e40521eb422c4e0a20716c271a306860979d450decbb51b8e"}, - {file = "numpy-1.24.1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:ed5fb71d79e771ec930566fae9c02626b939e37271ec285e9efaf1b5d4370e7d"}, - {file = "numpy-1.24.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ad2925567f43643f51255220424c23d204024ed428afc5aad0f86f3ffc080086"}, - {file = "numpy-1.24.1-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:cfa1161c6ac8f92dea03d625c2d0c05e084668f4a06568b77a25a89111621566"}, - {file = "numpy-1.24.1.tar.gz", hash = "sha256:2386da9a471cc00a1f47845e27d916d5ec5346ae9696e01a8a34760858fe9dd2"}, -] diff --git a/requirements.txt b/requirements.txt index 80d03b7f0..463a5238a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -49,20 +49,26 @@ mergedeep==1.3.4 # mkdocs-get-deps mkdocs==1.6.0 # via + # -r requirements.in # mkdocs-awesome-pages-plugin # mkdocs-include-markdown-plugin # mkdocs-markdownextradata-plugin # mkdocs-material # mkdocs-rss-plugin mkdocs-awesome-pages-plugin==2.9.3 + # via -r requirements.in mkdocs-get-deps==0.2.0 # via mkdocs mkdocs-include-markdown-plugin==6.2.1 + # via -r requirements.in mkdocs-markdownextradata-plugin==0.2.5 + # via -r requirements.in mkdocs-material==9.5.31 + # via -r requirements.in mkdocs-material-extensions==1.3.1 # via mkdocs-material mkdocs-rss-plugin==1.13.1 + # via -r requirements.in natsort==8.4.0 # via mkdocs-awesome-pages-plugin packaging==24.1 diff --git a/src/modules/languages/python.nix b/src/modules/languages/python.nix index 9c6aef053..2970d7ca3 100644 --- a/src/modules/languages/python.nix +++ b/src/modules/languages/python.nix @@ -10,7 +10,7 @@ let ); readlink = "${pkgs.coreutils}/bin/readlink -f "; - package = pkgs.callPackage "${pkgs.path}/pkgs/development/interpreters/python/wrapper.nix" { + package = pkgs.callPackage ../../python-wrapper.nix { python = cfg.package; requiredPythonModules = cfg.package.pkgs.requiredPythonModules; makeWrapperArgs = [ @@ -159,6 +159,7 @@ let echo "$ACTUAL_UV_CHECKSUM" > "$UV_CHECKSUM_FILE" else echo "uv sync failed. Run 'uv sync' manually." >&2 + exit 1 fi fi } @@ -166,6 +167,7 @@ let if [ ! -f "pyproject.toml" ] then echo "No pyproject.toml found. Make sure you have a pyproject.toml file in your project." >&2 + exit 1 else _devenv_uv_sync fi @@ -208,6 +210,7 @@ let echo "$ACTUAL_POETRY_CHECKSUM" > "$POETRY_CHECKSUM_FILE" else echo "Poetry install failed. Run 'poetry install' manually." + exit 1 fi fi } @@ -215,6 +218,7 @@ let if [ ! -f "pyproject.toml" ] then echo "No pyproject.toml found. Run 'poetry init' to create one." >&2 + exit 1 else _devenv_init_poetry_venv ${lib.optionalString cfg.poetry.install.enable '' @@ -241,7 +245,7 @@ in manylinux.enable = lib.mkOption { type = lib.types.bool; - default = pkgs.stdenv.isLinux; + default = false; description = '' Whether to install manylinux2014 libraries. diff --git a/src/modules/process-managers/process-compose.nix b/src/modules/process-managers/process-compose.nix index 3f4ec5ca9..9be035fcb 100644 --- a/src/modules/process-managers/process-compose.nix +++ b/src/modules/process-managers/process-compose.nix @@ -81,6 +81,7 @@ in process.manager.args = { "config" = cfg.configFile; + "disable-dotenv" = true; "port" = if !cfg.unixSocket.enable then toString cfg.port else null; "unix-socket" = if cfg.unixSocket.enable diff --git a/src/modules/services/mongodb.nix b/src/modules/services/mongodb.nix index 60fb0093d..925b6d6c4 100644 --- a/src/modules/services/mongodb.nix +++ b/src/modules/services/mongodb.nix @@ -73,8 +73,8 @@ in package = mkOption { type = types.package; description = "Which MongoDB package to use."; - default = pkgs.mongodb; - defaultText = lib.literalExpression "pkgs.mongodb"; + default = pkgs.mongodb-ce; + defaultText = lib.literalExpression "pkgs.mongodb-ce"; }; additionalArgs = lib.mkOption { diff --git a/src/python-wrapper.nix b/src/python-wrapper.nix new file mode 100644 index 000000000..dc4de5d67 --- /dev/null +++ b/src/python-wrapper.nix @@ -0,0 +1,86 @@ +{ lib +, stdenv +, buildEnv +, makeBinaryWrapper + + # manually pased +, python +, requiredPythonModules + + # extra opts +, extraLibs ? [ ] +, extraOutputsToInstall ? [ ] +, postBuild ? "" +, ignoreCollisions ? false +, permitUserSite ? false + # Wrap executables with the given argument. +, makeWrapperArgs ? [ ] +, +}: + +# Create a python executable that knows about additional packages. +let + env = + let + paths = requiredPythonModules (extraLibs ++ [ python ]); + pythonPath = "${placeholder "out"}/${python.sitePackages}"; + pythonExecutable = "${placeholder "out"}/bin/${python.executable}"; + in + buildEnv { + name = "${python.name}-env"; + + inherit paths; + inherit ignoreCollisions; + extraOutputsToInstall = [ "out" ] ++ extraOutputsToInstall; + + nativeBuildInputs = [ makeBinaryWrapper ]; + + postBuild = '' + if [ -L "$out/bin" ]; then + unlink "$out/bin" + fi + mkdir -p "$out/bin" + + rm -f $out/bin/.*-wrapped + + for path in ${lib.concatStringsSep " " paths}; do + if [ -d "$path/bin" ]; then + cd "$path/bin" + for prg in *; do + if [ -f "$prg" ]; then + rm -f "$out/bin/$prg" + if [ -x "$prg" ]; then + if [ -f ".$prg-wrapped" ]; then + echo "#!${pythonExecutable}" > "$out/bin/$prg" + sed -e '1d' -e '3d' ".$prg-wrapped" >> "$out/bin/$prg" + chmod +x "$out/bin/$prg" + else + makeWrapper "$path/bin/$prg" "$out/bin/$prg" --inherit-argv0 --resolve-argv0 ${lib.optionalString (!permitUserSite) ''--set PYTHONNOUSERSITE "true"''} ${lib.concatStringsSep " " makeWrapperArgs} + fi + fi + fi + done + fi + done + '' + postBuild; + + inherit (python) meta; + + passthru = python.passthru // { + interpreter = "${env}/bin/${python.executable}"; + inherit python; + env = stdenv.mkDerivation { + name = "interactive-${python.name}-environment"; + nativeBuildInputs = [ env ]; + + buildCommand = '' + echo >&2 "" + echo >&2 "*** Python 'env' attributes are intended for interactive nix-shell sessions, not for building! ***" + echo >&2 "" + exit 1 + ''; + }; + }; + }; +in +env