fix(nix): bump version and force use of python 3.12 to fix mpv gpu issues

This commit is contained in:
mkuritsu
2025-08-30 01:32:57 +01:00
parent 75d15a100d
commit 1e01b6e54a
2 changed files with 9 additions and 10 deletions

8
flake.lock generated
View File

@@ -20,17 +20,17 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1753345091, "lastModified": 1756386758,
"narHash": "sha256-CdX2Rtvp5I8HGu9swBmYuq+ILwRxpXdJwlpg8jvN4tU=", "narHash": "sha256-1wxxznpW2CKvI9VdniaUnTT2Os6rdRJcRUf65ZK9OtE=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3ff0e34b1383648053bba8ed03f201d3466f90c9", "rev": "dfb2f12e899db4876308eba6d93455ab7da304cd",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3ff0e34b1383648053bba8ed03f201d3466f90c9",
"type": "github" "type": "github"
} }
}, },

View File

@@ -2,8 +2,7 @@
description = "Viu Project Flake"; description = "Viu Project Flake";
inputs = { inputs = {
# The nixpkgs unstable latest commit breaks the plyer python package nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs/3ff0e34b1383648053bba8ed03f201d3466f90c9";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
@@ -17,21 +16,21 @@
system: system:
let let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
inherit (pkgs) lib python3Packages; inherit (pkgs) lib python312Packages;
version = "3.1.0"; version = "3.1.0";
in in
{ {
packages.default = python3Packages.buildPythonApplication { packages.default = python312Packages.buildPythonApplication {
pname = "viu"; pname = "viu";
inherit version; inherit version;
pyproject = true; pyproject = true;
src = self; src = self;
build-system = with python3Packages; [ hatchling ]; build-system = with python312Packages; [ hatchling ];
dependencies = with python3Packages; [ dependencies = with python312Packages; [
click click
inquirerpy inquirerpy
requests requests