mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-15 23:43:49 +00:00
nix: init tooling
This commit is contained in:
parent
b7672a306b
commit
b78133a5c4
5 changed files with 89 additions and 0 deletions
12
nix/package.nix
Normal file
12
nix/package.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{rustPlatform}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "mrc";
|
||||
version = "0.0.1";
|
||||
src = ./.;
|
||||
|
||||
cargoLock.lockFile = finalAttrs.src + /Cargo.lock;
|
||||
meta = {
|
||||
description = "MPV IPC wrapper";
|
||||
mainProgram = "mrc";
|
||||
};
|
||||
})
|
||||
27
nix/shell.nix
Normal file
27
nix/shell.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
mkShell,
|
||||
rust-analyzer,
|
||||
rustfmt,
|
||||
clippy,
|
||||
cargo,
|
||||
gcc,
|
||||
openssl,
|
||||
pkg-config,
|
||||
rustc,
|
||||
}:
|
||||
mkShell {
|
||||
name = "mrc";
|
||||
packages = [
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
clippy
|
||||
cargo
|
||||
cargo
|
||||
gcc
|
||||
clippy
|
||||
rustfmt
|
||||
openssl
|
||||
pkg-config
|
||||
rustc
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue