mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Pin nixpkgs in tests
I've had enough with nixpkgs breakage affecting our tests...
This commit is contained in:
parent
0d871f332a
commit
3ffd5f7389
2 changed files with 9 additions and 6 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -9,8 +9,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
nixpkgs-fmt:
|
nixpkgs-fmt:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: cachix/install-nix-action@v12
|
- uses: cachix/install-nix-action@v12
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
@ -22,10 +20,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
nixpkgs_version: ["master"]
|
|
||||||
# os: [ubuntu-latest, macos-latest]
|
# os: [ubuntu-latest, macos-latest]
|
||||||
env:
|
|
||||||
NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"
|
|
||||||
steps:
|
steps:
|
||||||
- uses: cachix/install-nix-action@v12
|
- uses: cachix/install-nix-action@v12
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
|
@ -1,4 +1,12 @@
|
||||||
{ pkgs ? import <nixpkgs> { } }:
|
let
|
||||||
|
sources = import ../nix/sources.nix;
|
||||||
|
in
|
||||||
|
{ pkgs ? import sources.nixpkgs {
|
||||||
|
overlays = [
|
||||||
|
(import ../overlay.nix)
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
poetry = pkgs.callPackage ../pkgs/poetry { python = pkgs.python3; inherit poetry2nix; };
|
poetry = pkgs.callPackage ../pkgs/poetry { python = pkgs.python3; inherit poetry2nix; };
|
||||||
poetry2nix = import ./.. { inherit pkgs;inherit poetry; };
|
poetry2nix = import ./.. { inherit pkgs;inherit poetry; };
|
||||||
|
|
Loading…
Add table
Reference in a new issue