mirror of
https://github.com/msfjarvis/clipboard-substitutor
synced 2025-08-14 21:17:01 +05:30
feat: use Rust from nixpkgs
This commit is contained in:
parent
8003246afd
commit
d1c7734979
1 changed files with 2 additions and 11 deletions
13
shell.nix
13
shell.nix
|
@ -1,15 +1,6 @@
|
||||||
with import <nixpkgs> { overlays = [ (import <rust-overlay>) ]; };
|
with import <nixpkgs> { overlays = [ (import <rust-overlay>) ]; };
|
||||||
mkShell {
|
mkShell {
|
||||||
buildInputs = [
|
buildInputs = [ cargo python39 rustc xorg.libxcb ]
|
||||||
(rust-bin.stable.latest.default.override {
|
++ pkgs.lib.optionals stdenv.isDarwin
|
||||||
extensions = [ "rust-src" "rustfmt-preview" ];
|
|
||||||
targets =
|
|
||||||
pkgs.lib.optionals pkgs.stdenv.isDarwin [ "aarch64-apple-darwin" ]
|
|
||||||
++ pkgs.lib.optionals pkgs.stdenv.isLinux
|
|
||||||
[ "x86_64-unknown-linux-gnu" ];
|
|
||||||
})
|
|
||||||
xorg.libxcb
|
|
||||||
python39
|
|
||||||
] ++ pkgs.lib.optionals stdenv.isDarwin
|
|
||||||
[ pkgs.darwin.apple_sdk.frameworks.AppKit ];
|
[ pkgs.darwin.apple_sdk.frameworks.AppKit ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue