overlay: do not contaminate python3Packages #1338
This file contains 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
name: "nix-build" | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
branches: | |
- 'master' | |
push: | |
branches: | |
- main | |
- master | |
schedule: | |
# rebuild everyday at 2:51 | |
# TIP: Choose a random time here so not all repositories are build at once: | |
# https://www.random.org/clock-times/?num=1&earliest=01%3A00&latest=08%3A00&interval=5&format=html&rnd=new | |
- cron: '50 5 * * *' | |
workflow_dispatch: | |
jobs: | |
nix-build: | |
strategy: | |
fail-fast: false | |
matrix: | |
# Set this to notify the global nur package registry that changes are | |
# available. | |
# | |
# The repo name as used in | |
# https://github.com/nix-community/NUR/blob/master/repos.json | |
nurRepo: | |
- some-pkgs | |
# Set this to cache your build results in cachix for faster builds | |
# in CI and for everyone who uses your cache. | |
# | |
# Format: Your cachix cache host name without the ".cachix.org" suffix. | |
# Example: mycache (for mycache.cachix.org) | |
# | |
# For this to work, you also need to set the CACHIX_SIGNING_KEY or | |
# CACHIX_AUTH_TOKEN secret in your repository secrets settings in | |
# Github found at | |
# https://github.com/<your_githubname>/nur-packages/settings/secrets | |
cachixName: | |
- pkgs | |
os: [ ubuntu-latest, macos-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v6 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Setup cachix | |
# Don't replace <YOUR_CACHIX_NAME> here! | |
if: ${{ matrix.cachixName != '<YOUR_CACHIX_NAME>' }} | |
uses: cachix/cachix-action@v12 | |
with: | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
name: ${{ matrix.cachixName }} | |
- name: Show nixpkgs version | |
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version' | |
- name: Build some-pkgs | |
run: nix run github:Mic92/nix-fast-build -- --skip-cached --no-nom --flake ".#legacyPackages.$(nix eval --raw --impure --expr builtins.currentSystem).pkgs.some-pkgs" | |
- name: Build some-pkgs-py | |
run: nix run github:Mic92/nix-fast-build -- --skip-cached --no-nom --flake ".#legacyPackages.$(nix eval --raw --impure --expr builtins.currentSystem).pkgs.some-pkgs-py" | |
- name: Trigger NUR update | |
# Don't replace <YOUR_REPO_NAME> here! | |
if: ${{ matrix.nurRepo != '<YOUR_REPO_NAME>' }} | |
run: curl -XPOST "https://nur-update.nix-community.org/update?repo=${{ matrix.nurRepo }}" |