Skip to content

Instantly share code, notes, and snippets.

@cjmakes
Created October 7, 2024 05:52
Show Gist options
  • Save cjmakes/951b08ed4e809d41c96ca2269a182fba to your computer and use it in GitHub Desktop.
Save cjmakes/951b08ed4e809d41c96ca2269a182fba to your computer and use it in GitHub Desktop.
nix flake for python opencv playing video file
{
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