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": { "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"
} }

View file

@ -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;

View file

@ -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;
}; };
}) })

View file

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