Giter VIP home page Giter VIP logo

Comments (11)

tpwrules avatar tpwrules commented on June 14, 2024 1

Yes, it seems to work properly. Thank you.

from dwarfs.

mhx avatar mhx commented on June 14, 2024

I'd rather not go down that route as it will eventually result in the override not getting updated and thus binaries will be produced reporting a wrong version number.

It should be easy to build without the git repo if you use the source tarball. If you say you "prefer" to build from the git repo, it sounds like you could actually build from the tarball?

from dwarfs.

tpwrules avatar tpwrules commented on June 14, 2024

We already have infrastructure to automatically splice the version number into the git tag and the source code, so there is no risk of the override not getting updated in our scenario. You can see that here if you are curious: https://github.com/NixOS/nixpkgs/blob/b02fd49f1638f7241843aa5a4fe73d8bc9bf1599/pkgs/tools/filesystems/dwarfs/default.nix#L27 .

Yes, theoretically it's possible to use the source tarball. I have not tried, but I have checked it does have the relevant version files. But when the source tarball is not simply a tar of the related git hash and has ancillary files like this, it harms reproducibility which is why we prefer not to do it.

from dwarfs.

mhx avatar mhx commented on June 14, 2024

I'm worrying less about nix, more about others misusing the option.

I'll think about it.

from dwarfs.

mhx avatar mhx commented on June 14, 2024

Can you check if mhx/nixpkgs-version-override works for you? I've tested this locally with something like:

cmake .. -DWITH_TESTS=1 -DNIXPKGS_DWARFS_VERSION_OVERRIDE=v0.8.0 -GNinja

from dwarfs.

mhx avatar mhx commented on June 14, 2024

Don't test this yet, I should have waited for the CI pipeline to finish... ;)

from dwarfs.

mhx avatar mhx commented on June 14, 2024

Okay, this looks better.

from dwarfs.

tpwrules avatar tpwrules commented on June 14, 2024

Is there a reason to call this nixpkgs-specific? Is that a defense against misuse in your mind?

from dwarfs.

mhx avatar mhx commented on June 14, 2024

Is there a reason to call this nixpkgs-specific? Is that a defense against misuse in your mind?

It's both to document where the feature originated from and to discourage its use outside of nixpkgs. I still think it's a rather obscure use case. :)

from dwarfs.

mhx avatar mhx commented on June 14, 2024

Did you get a chance to test the code?

from dwarfs.

mhx avatar mhx commented on June 14, 2024

Thanks, merged into main.

from dwarfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.