mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-29 19:47:45 +00:00
35 lines
908 B
Nix
35 lines
908 B
Nix
{
|
|
inputs = {
|
|
fenix.url = "github:nix-community/fenix";
|
|
fenix.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
|
};
|
|
|
|
outputs = inputs: let
|
|
system = "x86_64-linux";
|
|
|
|
fenix = inputs.fenix.packages.${system};
|
|
nixpkgs = import inputs.nixpkgs {inherit system;};
|
|
in {
|
|
devShell.${system} = nixpkgs.mkShell {
|
|
name = "alejandra";
|
|
packages = [
|
|
(fenix.combine [
|
|
fenix.latest.rustc
|
|
fenix.latest.toolchain
|
|
fenix.targets."wasm32-unknown-unknown".latest.rust-std
|
|
])
|
|
nixpkgs.binaryen
|
|
nixpkgs.pkg-config
|
|
nixpkgs.openssl
|
|
nixpkgs.yarn
|
|
nixpkgs.wasm-pack
|
|
];
|
|
shellHook = ''
|
|
export LD_LIBRARY_PATH=${nixpkgs.gcc.cc.lib}/lib:$LD_LIBRARY_PATH
|
|
export LD_LIBRARY_PATH=${nixpkgs.zlib}/lib:$LD_LIBRARY_PATH
|
|
'';
|
|
};
|
|
};
|
|
}
|