mirror of
https://github.com/callumio/suck.git
synced 2025-12-17 03:29:21 +00:00
initial commit
This commit is contained in:
commit
59d7953aad
16 changed files with 391 additions and 0 deletions
30
flake.nix
Normal file
30
flake.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
description = "`suck` development environment";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
rust-overlay,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
overlays = [(import rust-overlay)];
|
||||
pkgs = import nixpkgs {inherit system overlays;};
|
||||
rustToolchain = pkgs.pkgsBuildHost.rust-bin.stable.latest.default;
|
||||
tools = with pkgs; [];
|
||||
nativeBuildInputs = with pkgs; [rustToolchain pkg-config] ++ tools;
|
||||
in
|
||||
with pkgs; {
|
||||
devShells.default = mkShell {inherit nativeBuildInputs;};
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue