Push to remote
This commit is contained in:
parent
b17d487665
commit
519f870dbf
5 changed files with 85 additions and 62 deletions
13
nix/default.nix
Normal file
13
nix/default.nix
Normal 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
17
nix/devshell.nix
Normal 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
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue