mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-03-03 17:51:12 +01:00
Merge pull request #63 from d3spairx/chromium_build_fix
fix: chromium rebuild
This commit is contained in:
commit
ecfc6f5143
8
flake.lock
generated
8
flake.lock
generated
@ -20,16 +20,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1701742334,
|
"lastModified": 1701802827,
|
||||||
"narHash": "sha256-kofCitkjb+AjyMqV9xFFTfr36ZV+yohZDWrRVvos3tk=",
|
"narHash": "sha256-wTn0lpV75Uv6tU6haEypNsmnJJPb0hpaMIy/4uf5AiQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "1f39de03a7b65f29bbb71e0630af11f8e6a64377",
|
"rev": "a804fc878d7ba1558b960b4c64b0903da426ac41",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "release-23.11",
|
"ref": "nixos-23.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
description = "A Nix-flake-based Node.js development environment";
|
description = "A Nix-flake-based Node.js development environment";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -22,6 +22,7 @@
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
pkgs = import nixpkgs { inherit overlays system; };
|
pkgs = import nixpkgs { inherit overlays system; };
|
||||||
|
pkgs_chromium = import nixpkgs { inherit system; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
@ -33,7 +34,7 @@
|
|||||||
# Set Puppeteer to not download Chrome, cause it doesn't work on NixOS
|
# Set Puppeteer to not download Chrome, cause it doesn't work on NixOS
|
||||||
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
|
||||||
# Set Puppeteer to use Chromium from Nixpkgs
|
# Set Puppeteer to use Chromium from Nixpkgs
|
||||||
export PUPPETEER_EXECUTABLE_PATH=${pkgs.chromium.outPath}/bin/chromium
|
export PUPPETEER_EXECUTABLE_PATH=${pkgs_chromium.chromium.outPath}/bin/chromium
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user