nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.0 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 fetchYarnDeps, 6 nodejs, 7 yarnBuildHook, 8 yarnConfigHook, 9 yarnInstallHook, 10 unstableGitUpdater, 11}: 12 13stdenvNoCC.mkDerivation (finalAttrs: { 14 pname = "yalc"; 15 version = "0-unstable-2023-07-04"; 16 17 src = fetchFromGitHub { 18 owner = "wclr"; 19 repo = "yalc"; 20 # Upstream has no tagged versions 21 rev = "3b834e488837e87df47414fd9917c10f07f0df08"; 22 hash = "sha256-v8OhLVuRhnyN2PrslgVVS0r56wGhYYmjoz3ZUZ95xBc="; 23 }; 24 25 yarnOfflineCache = fetchYarnDeps { 26 yarnLock = "${finalAttrs.src}/yarn.lock"; 27 hash = "sha256-+w3azJEnRx4v3nJ3rhpLWt6CjOFhMMmr1UL5hg2ZR48="; 28 }; 29 30 nativeBuildInputs = [ 31 yarnConfigHook 32 yarnBuildHook 33 yarnInstallHook 34 nodejs 35 ]; 36 37 passthru.updateScript = unstableGitUpdater { }; 38 39 meta = { 40 description = "Work with yarn/npm packages locally like a boss"; 41 mainProgram = "yalc"; 42 homepage = "https://github.com/wclr/yalc"; 43 license = lib.licenses.mit; 44 maintainers = with lib.maintainers; [ pyrox0 ]; 45 }; 46})