mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
lib: add foodogsquared's extended stdenv and custom builder for it
This commit is contained in:
parent
0997a95234
commit
3bd5f26e76
8
lib/builders/build-fds-env.nix
Normal file
8
lib/builders/build-fds-env.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{ buildEnv, extendedStdenv }:
|
||||||
|
|
||||||
|
{ paths ? [ ], pathsToLink ? [ ], }@args:
|
||||||
|
|
||||||
|
buildEnv (args // {
|
||||||
|
paths = paths ++ [ extendedStdenv ];
|
||||||
|
pathsToLink = pathsToLink ++ [ "/bin" "/etc" "/share" "/lib" ];
|
||||||
|
})
|
@ -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; };
|
||||||
}
|
}
|
||||||
|
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user