lib: add foodogsquared's extended stdenv and custom builder for it

This commit is contained in:
Gabriel Arazas 2024-10-26 19:29:58 +08:00
parent 0997a95234
commit 3bd5f26e76
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{ buildEnv, extendedStdenv }:
{ paths ? [ ], pathsToLink ? [ ], }@args:
buildEnv (args // {
paths = paths ++ [ extendedStdenv ];
pathsToLink = pathsToLink ++ [ "/bin" "/etc" "/share" "/lib" ];
})

View File

@ -5,4 +5,6 @@
makeXDGPortalConfiguration = pkgs.callPackage ./xdg/make-portal-config.nix { }; makeXDGPortalConfiguration = pkgs.callPackage ./xdg/make-portal-config.nix { };
makeXDGDesktopEntry = pkgs.callPackage ./xdg/make-desktop-entry.nix { }; makeXDGDesktopEntry = pkgs.callPackage ./xdg/make-desktop-entry.nix { };
buildHugoSite = pkgs.callPackage ./hugo-build-site { }; buildHugoSite = pkgs.callPackage ./hugo-build-site { };
buildFDSEnv =
pkgs.callPackage ./build-fds-env.nix { extendedStdenv = self.stdenv; };
} }

View File

@ -20,6 +20,21 @@ pkgs.lib.makeExtensible
math = callLib ./math.nix; math = callLib ./math.nix;
fetchers = callLib ./fetchers; fetchers = callLib ./fetchers;
# foodogsquared's version of a standard environment. Basically just an
# extended version of nixpkgs' version that went overboard with
# developer-oriented dependencies.
stdenv = with pkgs;
[ stdenv direnv cookiecutter oils-for-unix nushell ipcalc ]
++ lib.optional pkgs.isLinux [
gdb
moreutils
meson
ninja
pkg-config
man-pages
man-pages-posix
];
inherit (self.builders) makeXDGMimeAssociationList inherit (self.builders) makeXDGMimeAssociationList
makeXDGPortalConfiguration makeXDGDesktopEntry; makeXDGPortalConfiguration makeXDGDesktopEntry;
inherit (self.trivial) countAttrs filterAttrs'; inherit (self.trivial) countAttrs filterAttrs';