flake.nix: Use Nixpkgs convention for package variants

This commit is contained in:
Robert Hensing 2024-06-26 03:36:03 +02:00
parent 74b9b77c9f
commit ebf77c79ae
2 changed files with 6 additions and 6 deletions

View file

@ -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";

View file

@ -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 { };