Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format of nix-package-url? #106

Open
Mr-Andersen opened this issue Jun 18, 2024 · 2 comments
Open

Format of nix-package-url? #106

Mr-Andersen opened this issue Jun 18, 2024 · 2 comments

Comments

@Mr-Andersen
Copy link

So, I'd like to use specific version of Nix on my CI. I guess this should be solved with nix-package-url. But what kind of data should be hosted at this URL? Pre-built Nix? Are built Nix versions hosted anywhere?

@Montmorency
Copy link

Montmorency commented Jul 17, 2024

Also trying out DetSystems github action installer and I'm a little confused by what nix-package-url should refer to? e.g. on the cachix nix installer action you specify nix_path to target a particular revision of nixpkgs. Is nix-package-url intended to be the same thing?:

e.g.

      - name: Install nix and cachix
        uses: cachix/install-nix-action@v27
        with:
           nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/38da06c69f821af50323d54b28d342cc3eb42891.tar.gz

I checked upstream in the installer itself but I'm still a little unclear what nix-package-url refers to e.g. a version of nix or a nixpkgs rev number or url etc?

@bigolu
Copy link

bigolu commented Oct 21, 2024

In the "Accessing other versions" section of the upstream installer, they explain how to use the --nix-package-url flag and I'm assuming the same rules apply for the nix-package-url option in this action. If so, you should be able to use a URL like the one mentioned in that section: https://releases.nixos.org/nix/nix-2.18.1/nix-2.18.1-x86_64-linux.tar.xz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants