diff --git a/flake.lock b/flake.lock index 9c87edac..7e36e537 100644 --- a/flake.lock +++ b/flake.lock @@ -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" } diff --git a/flake.nix b/flake.nix index 5c3eedc0..c74d8a4b 100644 --- a/flake.nix +++ b/flake.nix @@ -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; diff --git a/nix/package.nix b/nix/package.nix index a9d4e2e5..b49dd3ee 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -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; }; }) diff --git a/nix/shell.nix b/nix/shell.nix index 77c1d818..304d5700 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -19,8 +19,10 @@ mkShell { gcc clippy rustfmt + rustc + + # For TLS and friends openssl pkg-config - rustc ]; }