Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 1.07 KB

TODO.md

File metadata and controls

50 lines (43 loc) · 1.07 KB
  • Parse literals (bools and numbers, maybe only under toString)
  • Research --arg option for nurl (pass all fetcher args)
  • Support mkDerivation calls with a function
stdenv.mkDerivation (finalAttrs: {
  pname = "nix-update.nvim";
  version = "0.1.2";

  src = fetchFromGithub {
    owner = "reo101";
    repo = finalAttrs.pname; # <- should act just like if we had a rec attrset
    rev = finalAttrs.version;
  };
})
  • Deduplicate code in interpolation case of bindings

  • Document in README.md

  • Support dream2nix config references (similar to finalAttrs)

{ config
, lib
, dream2nix
, ...
}: {
  imports = [
    dream2nix.modules.dream2nix.mkDerivation
  ];

  deps = { nixpkgs, ... }: {
    # Fetchers
    inherit (nixpkgs)
      fetchFromGitHub
      ;
  };

  name = "nix-update.nvim";
  version = "0.1.2";

  mkDerivation = {
    src = config.deps.fetchFromGithub {
      owner = "reo101";
      repo = config.name; # <- same here, should loop back to `config` from function args
      rev = config.version;
    };
  };
}