nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 954 B view raw
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8buildNpmPackage (finalAttrs: { 9 pname = "elm-upgrade"; 10 version = "0.19.8"; 11 12 src = fetchFromGitHub { 13 owner = "avh4"; 14 repo = "elm-upgrade"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-frMh8PO9pDYTH03WlDUHuP3QPAz/oubxMYCcMlCU1MQ="; 17 }; 18 19 npmDepsHash = "sha256-QP2dlsZb43/p3+P+uNPn3hd3zbKtlYRVl0ABXbv12V4="; 20 21 dontNpmBuild = true; 22 23 npmFlags = [ "--ignore-scripts" ]; 24 25 postInstall = '' 26 rm -rf $out/lib/node_modules/elm-upgrade/node_modules/.bin 27 ''; 28 29 passthru.updateScript = nix-update-script { }; 30 31 meta = { 32 changelog = "https://github.com/avh4/elm-upgrade/blob/v${finalAttrs.version}/CHANGELOG.md"; 33 description = "Upgrade your Elm 0.18 projects to Elm 0.19"; 34 homepage = "https://github.com/avh4/elm-upgrade"; 35 license = lib.licenses.mit; 36 maintainers = with lib.maintainers; [ pyrox0 ]; 37 mainProgram = "elm-upgrade"; 38 }; 39})