Created
October 7, 2024 05:52
-
-
Save cjmakes/951b08ed4e809d41c96ca2269a182fba to your computer and use it in GitHub Desktop.
nix flake for python opencv playing video file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { | |
self, | |
nixpkgs, | |
flake-utils, | |
}: | |
flake-utils.lib.eachDefaultSystem ( | |
system: | |
let | |
pkgs = import nixpkgs { inherit system; }; | |
in | |
with pkgs; { | |
devShells.default = mkShell { | |
buildInputs = [ (python311Packages.opencv4.override { enableGtk2 = true; }) ]; | |
}; | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment