CCExtractor / ccextractor

CCExtractor - Official version maintained by the core team
https://www.ccextractor.org
GNU General Public License v2.0
707 stars 422 forks source link

require a nix.flake file #1594

Closed sandptel closed 7 months ago

sandptel commented 8 months ago

Please prefix your issue with one of the following: [PROPOSAL].

CCExtractor version: 0.94

In raising this issue, I confirm the following:

Necessary information

Video links

Additional information

I propose adding a flake.nix file to the CCExtractor repository, simplifying the build process for NixOS users by automating dependency management. This enhancement will streamline and standardize the build process within the Nix environment, increasing CCExtractor's accessibility and adhering to reproducible build principles.

My version of the file looks like this :


{
  description = "CCextractor";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

  outputs = { self, nixpkgs }:
    let
      pkgs = nixpkgs.legacyPackages.x86_64-linux;  
    in
    {
      devShells.x86_64-linux.default = pkgs.mkShell {
        buildInputs = with pkgs; [
          glew
          glfw
          cmake 
          gcc
          curl
          leptonica
          tesseract
          libclang
        ];
      };
    };
}