drv-parts
drv-parts copied to clipboard
Configure packages like NixOS systems
Add some commonly used `derivation` fields. The only oddball here is `outputHash` which should not be set on the real derivation if it is unset or `null`. If these look...
Currently, to access a derivation's passthru, you need `pkg.public.config.package-func.result.passthru`. I think passthru is something often used for gluing packages, so it would be good to have it under `pkg.public.passthru` directly.
After collecting some experience using drv-parts in dream2nix, there are some observations with the current `deps` pattern that I'd like to discuss and find a solution for: ## Observation 1:...
https://github.com/DavHau/drv-parts/blob/38f59f9eb2dbcf9ad6b939ec47c005033445f13e/modules/drv-parts/builtins-derivation/interface.nix#L7 The actual interface of builtins.derivation ```hs builtins.derivation :: { name :: String; outputs :: [ output @ String ] ? [ "out" ]; builder :: String; system :: String;...
Context - https://github.com/NixOS/nixpkgs/pull/212282 - https://github.com/NixOS/cabal2nix/issues/594#issuecomment-1403896453 If we have a (json) mapping from pkg-config names to package attribute names, a module could easily add the appropriate `deps`, without sacrificing the consistency...
https://github.com/DavHau/drv-parts/blob/26eceebedcffa68f93a761dde45cf0789f59be22/lib.nix#L10 This line parts ways with a "simplified" module interface by introducing higher order arguments to the module evaluation. These aren't free. I'm not experienced enough to come up with...
A package that expose `pkg-config` "modules" (`.pc` files) should do a couple of things. In the current nixpkgs that would be - add `validatePkgConfig` hook In a future nixpkgs that...
Beauty
The design systems for Nix you've been cooking up recently are looking great. I haven't tried out flake parts or std or similar systems yet; but the style you have...
I'm wondering if we could somehow import existing package definitions from nixpkgs. Maybe we could create another drv-parts backend that can wrap any `default.nix` file from nixpkgs. Then would make...