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
Merged
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
10 changes: 5 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
outputs = { self, nixpkgs }: {
packages.x86_64-linux.kolide-launcher =
with import nixpkgs { system = "x86_64-linux"; };
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.

pname = "kolide-launcher";
version = "1.3.2-3-gd3aa979";

src = fetchzip {
url = "https://dl.kolide.co/kolide/launcher/linux/amd64/launcher-1.2.1-11-g8c04686.tar.gz";
sha256 = "sha256-sNw+c6gASo8vesJ+KOrNkvKEF4iKA3tM3li3vRYEoPc=";
url = "https://dl.kolide.co/kolide/launcher/linux/amd64/launcher-${version}.tar.gz";
sha256 = "sha256-ohW27Nn1nFqIeyR5zMrP4nOYtJaF+Avt21z2FPIUxLk=";
name = "launcher";
};

Expand Down