mirror of
https://github.com/Kong/insomnia.git
synced 2025-12-23 22:28:58 -05:00
update flake (#9085)
This commit is contained in:
12
flake.lock
generated
12
flake.lock
generated
@@ -2,16 +2,18 @@
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1747533086,
|
||||
"narHash": "sha256-+8goyptSXa7qV0k5uPKyky58jpBjI/qkzsbwCZFvhRY=",
|
||||
"lastModified": 1756754095,
|
||||
"narHash": "sha256-9Rsn9XEWINExosFkKEqdp8EI6Mujr1gmQiyrEcts2ls=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8406224e30c258025cb8b31704bdb977a8f1f009",
|
||||
"rev": "7c815e513adbf03c9098b2bd230c1e0525c8a7f9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-25.05",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
|
||||
40
flake.nix
40
flake.nix
@@ -1,24 +1,30 @@
|
||||
{
|
||||
outputs = { nixpkgs, ... }:
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||
};
|
||||
outputs =
|
||||
{ nixpkgs, ... }:
|
||||
let
|
||||
forAllSystems = with nixpkgs.lib; f: foldAttrs mergeAttrs { }
|
||||
(map (s: { ${s} = f s; }) systems.flakeExposed);
|
||||
forAllSystems =
|
||||
with nixpkgs.lib;
|
||||
f: foldAttrs mergeAttrs { } (map (s: { ${s} = f s; }) systems.flakeExposed);
|
||||
in
|
||||
{
|
||||
devShell = forAllSystems
|
||||
(system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.nodejs_22
|
||||
pkgs.yarn
|
||||
];
|
||||
devShell = forAllSystems (
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.nodejs_22
|
||||
pkgs.yarn
|
||||
];
|
||||
|
||||
ELECTRON_OVERRIDE_DIST_PATH = "${pkgs.electron_35}/bin/";
|
||||
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
|
||||
LD_LIBRARY_PATH = nixpkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc ];
|
||||
});
|
||||
ELECTRON_OVERRIDE_DIST_PATH = "${pkgs.electron_37}/bin/";
|
||||
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
|
||||
LD_LIBRARY_PATH = nixpkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc ];
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user