nix: cleanup

This commit is contained in:
raf 2025-02-05 04:03:51 +03:00
commit 0266e3930c
No known key found for this signature in database
GPG key ID: EED98D11B85A2819
4 changed files with 21 additions and 13 deletions

7
flake.lock generated
View file

@ -2,15 +2,16 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1734880952,
"narHash": "sha256-ZTt3x0DN55JGjdYv8TEDC/YDxcYfpFDLApYvKFMnxNM=",
"lastModified": 1738680400,
"narHash": "sha256-ooLh+XW8jfa+91F1nhf9OF7qhuA/y1ChLx6lXDNeY5U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "578baae41df4920fb34db92ae3a312c23ea90b89",
"rev": "799ba5bffed04ced7067a91798353d360788b30d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}

View file

@ -1,10 +1,7 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = {
self,
nixpkgs,
}: let
outputs = {nixpkgs, ...}: let
systems = ["x86_64-linux" "aarch64-linux"];
forEachSystem = nixpkgs.lib.genAttrs systems;

View file

@ -1,12 +1,20 @@
{rustPlatform}:
{
lib,
rustPlatform,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "mrc";
version = "0.0.1";
src = ./.;
version = "0.1.0";
src = builtins.path {
path = ../.;
name = "mrc";
};
cargoLock.lockFile = finalAttrs.src + /Cargo.lock;
meta = {
description = "MPV IPC wrapper";
description = "IPC wrapper & command-line controller for MPV, the video player ";
mainProgram = "mrc";
license = lib.licenses.mpl20;
};
})

View file

@ -19,8 +19,10 @@ mkShell {
gcc
clippy
rustfmt
rustc
# For TLS and friends
openssl
pkg-config
rustc
];
}