11 source = lib.importJSON ./source.json;
14 pname = "yarn-lock-converter";
15 inherit (source) version;
18 url = "https://registry.npmjs.org/@vht/yarn-lock-converter/-/yarn-lock-converter-${version}.tgz";
19 hash = "sha256-CP1wI33fgtp4GSjasktbfWuUjGzCuK3XR+p64aPAryQ=";
22 npmDepsHash = source.deps;
26 nativeBuildInputs = [ nodejs ];
29 # Use generated package-lock.json as upstream does not provide one
30 ln -s ${./package-lock.json} package-lock.json
34 mv $out/bin/@vht/yarn-lock-converter $out/bin/yarn-lock-converter
38 tests.version = testers.testVersion {
39 package = yarn-lock-converter;
41 updateScript = ./update.sh;
45 description = "Converts modern Yarn v2+ yarn.lock files into a Yarn v1 format";
46 homepage = "https://github.com/VHT/yarn-lock-converter";
47 license = licenses.mit;
48 maintainers = with maintainers; [ gador ];
49 mainProgram = "yarn-lock-converter";