DeterminateSystems / nix-installer-action

The Github Action for the Determinate Nix Installer
https://github.com/determinateSystems/nix-installer
GNU Lesser General Public License v2.1
158 stars 16 forks source link

Format of `nix-package-url`? #106

Open Mr-Andersen opened 2 months ago

Mr-Andersen commented 2 months ago

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 commented 1 month ago

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?