Skip to content

Commit

Permalink
flake: pin nixpkgs for npmlock2nix
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed May 30, 2024
1 parent c12f9fe commit 6a00c53
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,25 @@

inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
# https://github.com/nix-community/npmlock2nix/blob/master/nix/sources.json
inputs.nixpkgs-npmlock2nix.url = "nixpkgs/c5ed8beb478a8ca035f033f659b60c89500a3034";
inputs.npmlock2nix.url = "github:nix-community/npmlock2nix";
inputs.npmlock2nix.flake = false;
inputs.nixos-infra.url = "github:NixOS/infra";
inputs.nixos-infra.flake = false;

outputs = { self
, nixpkgs
, nixpkgs-npmlock2nix
, flake-utils
, npmlock2nix
, nixos-infra
}:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
pkgs = import nixpkgs { inherit system; };
pkgsNpmlock2nix = import nixpkgs-npmlock2nix {
inherit system;
overlays = [
(self: super: {
Expand Down Expand Up @@ -86,7 +90,12 @@

packages.default = packages.flake-info;
packages.flake-info = import ./flake-info { inherit pkgs; };
packages.frontend = import ./frontend { inherit pkgs nixosChannels version; };
packages.frontend = import ./frontend {
pkgs = pkgs // {
inherit (pkgsNpmlock2nix) npmlock2nix;
};
inherit nixosChannels version;
};
packages.nixosChannels = nixosChannelsFile;

devShells.default = mkDevShell {
Expand Down

0 comments on commit 6a00c53

Please sign in to comment.