Flake : Use nixpkgs.lib instead of pkgs.lib.
This commit is contained in:
parent
10c469c9a1
commit
e40be04dfe
|
@ -9,7 +9,7 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
lib = pkgs.lib;
|
||||
lib = nixpkgs.lib;
|
||||
in {
|
||||
devShell.${system} = pkgs.mkShell rec {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
with import <nixpkgs> {};
|
||||
|
||||
mkShell {
|
||||
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
|
||||
stdenv.cc.cc
|
||||
];
|
||||
NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker";
|
||||
|
||||
buildInputs = [
|
||||
freesweep
|
||||
vitetris
|
||||
];
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
with import <nixpkgs> {};
|
||||
|
||||
mkShell {
|
||||
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
|
||||
alsa-lib
|
||||
expat
|
||||
libGL
|
||||
libpulseaudio
|
||||
libuuid
|
||||
libz
|
||||
nspr
|
||||
nss
|
||||
openssl
|
||||
stdenv.cc.cc
|
||||
xorg.libX11
|
||||
xorg.libXcomposite
|
||||
xorg.libXcursor
|
||||
xorg.libXdamage
|
||||
xorg.libXext
|
||||
xorg.libXfixes
|
||||
xorg.libXi
|
||||
xorg.libXrender
|
||||
xorg.libXtst
|
||||
];
|
||||
NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker";
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
lib = pkgs.lib;
|
||||
in
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
];
|
||||
}
|
1
.config/linux/shell/TODO
Normal file
1
.config/linux/shell/TODO
Normal file
|
@ -0,0 +1 @@
|
|||
Use flakes here with devShell
|
Reference in a new issue