mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-16 16:03:48 +00:00
nix: cleanup
This commit is contained in:
parent
93a724bb01
commit
0266e3930c
4 changed files with 21 additions and 13 deletions
7
flake.lock
generated
7
flake.lock
generated
|
|
@ -2,15 +2,16 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1734880952,
|
"lastModified": 1738680400,
|
||||||
"narHash": "sha256-ZTt3x0DN55JGjdYv8TEDC/YDxcYfpFDLApYvKFMnxNM=",
|
"narHash": "sha256-ooLh+XW8jfa+91F1nhf9OF7qhuA/y1ChLx6lXDNeY5U=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "578baae41df4920fb34db92ae3a312c23ea90b89",
|
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
outputs = {
|
outputs = {nixpkgs, ...}: let
|
||||||
self,
|
|
||||||
nixpkgs,
|
|
||||||
}: let
|
|
||||||
systems = ["x86_64-linux" "aarch64-linux"];
|
systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,20 @@
|
||||||
{rustPlatform}:
|
{
|
||||||
|
lib,
|
||||||
|
rustPlatform,
|
||||||
|
}:
|
||||||
rustPlatform.buildRustPackage (finalAttrs: {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "mrc";
|
pname = "mrc";
|
||||||
version = "0.0.1";
|
version = "0.1.0";
|
||||||
src = ./.;
|
src = builtins.path {
|
||||||
|
path = ../.;
|
||||||
|
name = "mrc";
|
||||||
|
};
|
||||||
|
|
||||||
cargoLock.lockFile = finalAttrs.src + /Cargo.lock;
|
cargoLock.lockFile = finalAttrs.src + /Cargo.lock;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "MPV IPC wrapper";
|
description = "IPC wrapper & command-line controller for MPV, the video player ";
|
||||||
mainProgram = "mrc";
|
mainProgram = "mrc";
|
||||||
|
license = lib.licenses.mpl20;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,10 @@ mkShell {
|
||||||
gcc
|
gcc
|
||||||
clippy
|
clippy
|
||||||
rustfmt
|
rustfmt
|
||||||
|
rustc
|
||||||
|
|
||||||
|
# For TLS and friends
|
||||||
openssl
|
openssl
|
||||||
pkg-config
|
pkg-config
|
||||||
rustc
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue