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