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

Add 'nixpkgs follows' by default to flake generated by 'glistix new' #30

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion compiler-cli/src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading