mirror of
https://github.com/Drop-OSS/droplet-rs.git
synced 2026-01-30 20:55:26 +01:00
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
description = "Drop-OSS app development environment";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
rust-overlay,
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
overlays = [ (import rust-overlay) ];
|
|
pkgs = import nixpkgs {
|
|
inherit system overlays;
|
|
};
|
|
libraries = with pkgs; [
|
|
glib
|
|
glibc
|
|
openssl
|
|
];
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
pkg-config
|
|
git
|
|
rust-bin.nightly.latest.default
|
|
rust-analyzer
|
|
cargo-expand
|
|
];
|
|
|
|
|
|
buildInputs = libraries;
|
|
|
|
shellHook = ''
|
|
export LD_LIBRARY_PATH="${
|
|
pkgs.lib.makeLibraryPath libraries
|
|
}:$LD_LIBRARY_PATH"
|
|
echo "Downpour development environment loaded"
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|