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

Set launcher version using derivation version #3

Merged
merged 4 commits into from
Dec 28, 2023

Conversation

RebeccaMahany
Copy link
Contributor

@RebeccaMahany RebeccaMahany commented Dec 28, 2023

Uses the mkDerivation version attribute to set launcher version in the download URL.

Also updates to new launcher version (current nightly), and updates to set pname instead of name so that name will be automatically derived as ${pname}-${version}.

@RebeccaMahany RebeccaMahany marked this pull request as ready for review December 28, 2023 21:00
stdenv.mkDerivation {
name = "kolide-launcher";
version = "1.2.1-11-g8c04686";
stdenv.mkDerivation rec {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rec keyword denotes a "recursive set", in which attributes can refer to each other.

Adding rec lets us refer to the version attribute in the fetchzip URL below.

@RebeccaMahany RebeccaMahany merged commit 26904ab into main Dec 28, 2023
1 check passed
@RebeccaMahany RebeccaMahany deleted the becca/launcher-version branch December 28, 2023 21:05
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

Successfully merging this pull request may close these issues.

2 participants