-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
28 lines (27 loc) · 877 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
old-nixpkgs.url =
"github:NixOS/nixpkgs/0c19708cf035f50d28eb4b2b8e7a79d4dc52f6bb";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, old-nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
(final: prev: {
inherit (old-nixpkgs.legacyPackages.${system}) webkitgtk_4_1;
})
];
};
in rec {
packages.default = pkgs.callPackage ./package.nix { };
devShells.default = pkgs.mkShell {
inherit (packages.default) buildInputs;
nativeBuildInputs = packages.default.nativeBuildInputs
++ (with pkgs; [ rustc gcc rustfmt clippy ]);
};
});
}