Basic repo cleanup

This commit is contained in:
Luc Perkins 2022-07-28 23:20:46 +02:00
parent 41744cc024
commit 20e8cf8675
No known key found for this signature in database
GPG key ID: 4F102D0C16E232F2
21 changed files with 175 additions and 39 deletions

View file

@ -1,4 +1 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.1.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.1/direnvrc" "sha256-b6qJ4r34rbE23yWjMqbmu3ia2z4b2wIlZUksBke/ol0="
fi
use flake .

2
rust/.gitignore vendored
View file

@ -1,2 +0,0 @@
.direnv/
target

7
rust/Cargo.lock generated
View file

@ -1,7 +0,0 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "rust"
version = "0.1.0"

View file

@ -1,8 +0,0 @@
[package]
name = "rust"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View file

@ -20,13 +20,14 @@
rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
inherit (pkgs) mkShell;
inherit (pkgs.lib) optionals;
inherit (pkgs.stdenv) isDarwin;
in {
packages.default = rust;
devShells = {
default = pkgs.mkShell {
default = mkShell {
nativeBuildInputs = [
rust
pkgs.pkg-config

View file

@ -1,2 +1,2 @@
[toolchain]
channel = "1.61.0"
channel = "1.62.0"

View file

@ -1,3 +0,0 @@
fn main() {
println!("Hello, world!");
}