Skip to content

uuid package cannot be overrided with Git source #408

Answered by malteneuss
malteneuss asked this question in Q&A
Discussion options

You must be logged in to vote

I think i figured it out:

inputs = {
   # uuid v7 support
    uuid-repo.url = "github:LaurentRDC/uuid/594487ca4d606f767833f390714195eedcd2886e";
    uuid-repo.flake = false; 
...
  {
   packages.uuid.source =  "${inputs.uuid-repo}/uuid";
  # uuid already has a config in nixpkgs with a revision number and a overriden/edited cabal file, which we have to reset:
  settings.uuid.custom =  pkg: pkgs.haskell.lib.compose.overrideCabal (old: { editedCabalFile = null; revision = null; }) pkg;
}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@malteneuss
Comment options

@srid
Comment options

srid Mar 25, 2025
Maintainer

@malteneuss
Comment options

@malteneuss
Comment options

Answer selected by malteneuss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants