CCExtractor / ccextractor

CCExtractor - Official version maintained by the core team

Home Page:https://www.ccextractor.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

require a nix.flake file

sandptel opened this issue · comments

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

CCExtractor version: 0.94

In raising this issue, I confirm the following:

  • I have read and understood the contributors guide.
  • I have checked that the feature I am suggesting isn't already present.
  • I have checked that the issue I'm posting isn't already reported.
  • I have checked that the issue I'm porting isn't already solved and no duplicates exist in closed issues and in opened issues
  • I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
  • I have used the latest available version of CCExtractor to verify this issue exists.
  • I have ticked all the boxes in this section and to prove it I'm deleting the section completely to remove boilerplate text.

Necessary information

  • Is this a regression (i.e. did it work before)? NO
  • What platform did you use? Linux (NixOS)
  • What were the used arguments? N/A

Video links

  • N/A

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
        ];
      };
    };
}