Skip to content

Commit

Permalink
Merge pull request #331909 from pyrox0/rem-mkyarnpackage/dotenv-cli
Browse files Browse the repository at this point in the history
dotenv-cli: remove usage of mkYarnPackage
  • Loading branch information
doronbehar authored Aug 3, 2024
2 parents 79860d1 + 1130d8c commit bec2f5a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 31 deletions.
26 changes: 0 additions & 26 deletions pkgs/by-name/do/dotenv-cli/package.json

This file was deleted.

19 changes: 14 additions & 5 deletions pkgs/by-name/do/dotenv-cli/package.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
lib,
mkYarnPackage,
stdenv,
fetchYarnDeps,
fetchFromGitHub,
nix-update-script
}: mkYarnPackage rec {
yarnConfigHook,
npmHooks,
nodejs,
nix-update-script,
}:
stdenv.mkDerivation rec {
pname = "dotenv-cli";
version = "7.4.3";

Expand All @@ -15,12 +19,17 @@
hash = "sha256-kR9LSHvbvKLuJBGrsmYMeqF3s8SF+/99OeNlKp9azI8=";
};

packageJSON = ./package.json;
offlineCache = fetchYarnDeps {
yarnOfflineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-Sx5DHUAXquqMqJgvhvHcRPqkfWN49+6icUQIos6OHCg=";
};

nativeBuildInputs = [
yarnConfigHook
npmHooks.npmInstallHook
nodejs
];

passthru.updateScript = nix-update-script { };

meta = {
Expand Down

0 comments on commit bec2f5a

Please sign in to comment.