Skip to content

Commit 80c58dd

Browse files
committed
Nix expr: use lib instead of std in flake.nix
1 parent c5a21eb commit 80c58dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

flake.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
inputs@{ self, nixpkgs, ... }:
88
with builtins;
99
let
10-
std = nixpkgs.lib;
10+
inherit (nixpkgs) lib;
1111
systems = [
1212
# this is currently the only supported system, according to https://github.com/TASEmulators/BizHawk/issues/1430#issue-396452488
1313
"x86_64-linux"
1414
];
15-
nixpkgsFor = std.genAttrs systems (
15+
nixpkgsFor = lib.genAttrs systems (
1616
system:
1717
import nixpkgs {
1818
localSystem = builtins.currentSystem or system;
@@ -24,7 +24,7 @@
2424
importDefaultDerivationsWith =
2525
system: pkgs:
2626
# ./default.nix outputs some non-derivation attributes, so we have to filter those out
27-
(std.filterAttrs (name: val: std.isDerivation val) (import ./default.nix { inherit system pkgs; }));
27+
(lib.filterAttrs (name: val: lib.isDerivation val) (import ./default.nix { inherit system pkgs; }));
2828
in
2929
{
3030
packages = mapAttrs (
@@ -37,8 +37,8 @@
3737
devShells = mapAttrs (
3838
system: pkgs:
3939
# ./shell.nix outputs some non-derivation attributes and some extraneous derivations, so we have to filter those out
40-
(std.filterAttrs (
41-
name: val: std.isDerivation val && name != "stdenv" && name != "out" && name != "inputDerivation"
40+
(lib.filterAttrs (
41+
name: val: lib.isDerivation val && name != "stdenv" && name != "out" && name != "inputDerivation"
4242
) (import ./shell.nix { inherit system pkgs; }))
4343
// {
4444
default = self.devShells.${system}.emuhawk-latest;

0 commit comments

Comments
 (0)