Push to remote

This commit is contained in:
specCon18 2023-09-12 12:16:10 -04:00
parent b17d487665
commit 519f870dbf
5 changed files with 85 additions and 62 deletions

13
nix/default.nix Normal file
View file

@ -0,0 +1,13 @@
{ pkgs ? import <nixpkgs> { } }:
let
manifest = (pkgs.lib.importTOML ../Cargo.toml).package;
in
pkgs.rustPlatform.buildRustPackage rec {
pname = manifest.name;
version = manifest.version;
cargoLock.lockFile = ../Cargo.lock;
src = pkgs.lib.cleanSource ../.;
buildInputs = [ pkgs.xz pkgs.unrar ];
nativeBuildInputs = [ pkgs.xz pkgs.pkg-config ];
}

17
nix/devshell.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
# Get dependencies from the main package
inputsFrom = [ (pkgs.callPackage ./default.nix { }) ];
# Additional tooling
buildInputs = with pkgs; [
cargo
cargo-watch
rustc
just
rustup
clippy
rust-analyzer
xz
pkg-config
];
}