1
1
mirror of https://github.com/divnix/digga.git synced 2024-09-11 06:55:55 +03:00

devshell: use nix 2.7 from unstable channel

This commit is contained in:
Chris Montgomery 2022-03-31 09:40:50 -04:00
parent 1246668e55
commit ab39edf087
No known key found for this signature in database
GPG Key ID: A6BA9BA2FDA7C997

View File

@ -2,9 +2,10 @@
, inputs ? (import ./.).inputs
}:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
unstablePkgs = inputs.nixpkgs-unstable.legacyPackages.${system};
devshell = import inputs.devshell { inherit pkgs system; };
nixBin = "${unstablePkgs.nix}/bin/nix";
withCategory = category: attrset: attrset // { inherit category; };
utils = withCategory "utils";
@ -79,9 +80,9 @@ let
digga_fixture
test -f flake.lock && lockfile_present=$? || true
${pkgs.nixUnstable}/bin/nix flake lock --update-input digga "$@"; lockfile_updated=$?;
${pkgs.nixUnstable}/bin/nix flake show "$@"
${pkgs.nixUnstable}/bin/nix flake check "$@"
${nixBin} flake lock --update-input digga "$@"; lockfile_updated=$?;
${nixBin} flake show "$@"
${nixBin} flake check "$@"
cleanup
'';
@ -93,7 +94,8 @@ devshell.mkShell {
packages = with pkgs; [
fd
nixpkgs-fmt
nixUnstable
# Use the latest stable version of nix
unstablePkgs.nix
];
env = [