Skip to content

feat(nix): added binary nix package#1068

Merged
pamburus merged 1 commit intomasterfrom
feature/nix-bin-pkg
Sep 28, 2025
Merged

feat(nix): added binary nix package#1068
pamburus merged 1 commit intomasterfrom
feature/nix-bin-pkg

Conversation

@pamburus
Copy link
Copy Markdown
Owner

@pamburus pamburus commented Sep 28, 2025

This pull request adds a binary package bin for Nix which uses pre-built binaries from releases.

Benefits

The binary package offers:

  • Faster installation - No compilation required
  • Reduced dependencies - No need for Rust toolchain
  • Consistent builds - Uses the same binaries as GitHub releases

Usage

Run directly:

nix run github:pamburus/hl#bin

Add to profile:

nix profile add github:pamburus/hl#bin

Add to NixOS system configuration:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
    hl.url = "github:pamburus/hl";
  };
  outputs = {nixpkgs, hl, ...}:
  let
    system = "x86_64-linux";
  in
  {
    # this is just an example!
    nixosConfigurations.yourHost = nixpkgs.lib.nixosSystem {
      inherit system;
      modules = [
        ({...}: {
          environment.systemPackages = [
            hl.packages.${system}.bin
          ];
        })
      ];
    };
  };
}

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.64%. Comparing base (18ef5ee) to head (0d93350).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1068   +/-   ##
=======================================
  Coverage   88.64%   88.64%           
=======================================
  Files          47       47           
  Lines       13681    13681           
=======================================
  Hits        12128    12128           
  Misses       1553     1553           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pamburus pamburus merged commit 532bcde into master Sep 28, 2025
12 checks passed
@pamburus pamburus deleted the feature/nix-bin-pkg branch September 28, 2025 20:19
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.

1 participant