Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Allow non-pkgs deps (needs test)
Demo: ```diff diff --git a/pkgs/by-name/he/hello/package.nix b/pkgs/by-name/he/hello/package.nix index 0cf0ae493b72..69921e14ffc6 100644 --- a/pkgs/by-name/he/hello/package.nix +++ b/pkgs/by-name/he/hello/package.nix @@ -1,9 +1,13 @@ -{ mkPackageWithDeps, layers }: mkPackageWithDeps ({ stdenv, fetchurl, testers, lib, callPackage, nixos }: [ +{ mkPackageWithDeps, layers }: mkPackageWithDeps ({ stdenv, fetchurl, testers, lib, callPackage, nixos, haskellPackages, omnidoc }: [ (layers.derivation { inherit stdenv; }) (this: old: { name = "hello"; version = "2.12.1"; + deps = old.deps // { + omnidoc = haskellPackages.pandoc; + }; + setup = old.setup or {} // { src = fetchurl { url = "mirror://gnu/hello/hello-${this.version}.tar.gz"; @@ -24,6 +28,10 @@ run = callPackage ./test.nix { hello = this.public; }; }; + public = old.public // { # passthru, just to show that it works + inherit omnidoc; + }; + meta = with lib; { description = "A program that produces a familiar, friendly greeting"; longDescription = '' ```
- Loading branch information