Command line frontend for video metadata tagging tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 1.1KB

123456789101112131415161718192021222324252627282930313233343536
  1. { pkgs ? import <nixpkgs> { }
  2. }:
  3. let
  4. # Extra system dependencies needed:
  5. extraPackages = with pkgs; [ atomicparsley ];
  6. # Grab the latest version of some dependencies:
  7. themoviedb = fetchGit "https://code.devalot.com/open/themoviedb.git";
  8. byline = fetchGit "https://code.devalot.com/open/byline.git";
  9. # Helpful if you want to override any Haskell packages:
  10. overrides = self: super: {
  11. http-client = if super ? http-client_0_6_2
  12. then super.http-client_0_6_2
  13. else super.http-client;
  14. byline = self.callPackage "${byline}/byline.nix" { };
  15. themoviedb = self.callPackage "${themoviedb}/themoviedb.nix" { };
  16. };
  17. # Apply the overrides from above:
  18. haskell = pkgs.haskellPackages.override (orig: {
  19. overrides = pkgs.lib.composeExtensions
  20. (orig.overrides or (_: _: {})) overrides; });
  21. in
  22. # Load the local nix file and use the overrides from above:
  23. haskell.callPackage ./vimeta.nix {
  24. mkDerivation = { buildTools ? []
  25. , ...
  26. }@args:
  27. haskell.mkDerivation (args // {
  28. buildTools = buildTools ++ extraPackages;
  29. });
  30. }