diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a0ed639f6..1396cf0cd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -412,6 +412,12 @@ jobs: cd .test-flake nix run -L .. -- new newpkg + # For efficiency, just fully reuse the already built glistix + - name: Remove 'follows nixpkgs' from test project flake + run: | + sed -i -e 's/inputs\.nixpkgs\.follows = "nixpkgs";//' flake.nix + working-directory: ./.test-flake/newpkg + - name: Build generated project without flake run: | # Build to generate manifest.toml diff --git a/compiler-cli/src/new.rs b/compiler-cli/src/new.rs index d5bc72517..ce04d58ff 100644 --- a/compiler-cli/src/new.rs +++ b/compiler-cli/src/new.rs @@ -277,7 +277,10 @@ jobs: }}; # Pick your Glistix version here. - glistix.url = "github:glistix/glistix/v0.4.0"; + glistix = {{ + url = "github:glistix/glistix/v0.4.0"; + inputs.nixpkgs.follows = "nixpkgs"; + }}; # Submodules # Add any submodules which you use as dependencies here,