Skip to content

Commit

Permalink
flake.nix: Use Nixpkgs convention for package variants
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jun 26, 2024
1 parent e596572 commit 2f225ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,18 @@
'';
};

libgit2-nix = final.libgit2.overrideAttrs (attrs: {
libgit2_nix = final.libgit2.overrideAttrs (attrs: {
src = libgit2;
version = libgit2.lastModifiedDate;
cmakeFlags = attrs.cmakeFlags or []
++ [ "-DUSE_SSH=exec" ];
});

boehmgc-nix = final.boehmgc.override {
boehmgc_nix = final.boehmgc.override {
enableLargeConfig = true;
};

libseccomp-nix = final.libseccomp.overrideAttrs (_: rec {
libseccomp_nix = final.libseccomp.overrideAttrs (_: rec {
version = "2.5.5";
src = final.fetchurl {
url = "https://github.com/seccomp/libseccomp/releases/download/v${version}/libseccomp-${version}.tar.gz";
Expand Down
6 changes: 3 additions & 3 deletions packaging/components.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ in
# This becomes the pkgs.nixComponents attribute set
{
inherit stdenv versionSuffix;
libseccomp = pkgs.libseccomp-nix;
boehmgc = pkgs.boehmgc-nix;
libgit2 = pkgs.libgit2-nix;
libseccomp = pkgs.libseccomp_nix;
boehmgc = pkgs.boehmgc_nix;
libgit2 = pkgs.libgit2_nix;
busybox-sandbox-shell = pkgs.busybox-sandbox-shell or pkgs.default-busybox-sandbox-shell;

nix = callPackage ../package.nix { };
Expand Down

0 comments on commit 2f225ef

Please sign in to comment.