nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 1.1 kB view raw
1{ 2 lib, 3 buildNpmPackage, 4 fetchFromGitHub, 5 elmPackages, 6}: 7 8buildNpmPackage (finalAttrs: { 9 pname = "elm-verify-examples"; 10 version = "6.0.3"; 11 12 src = fetchFromGitHub { 13 owner = "stoeffel"; 14 repo = "elm-verify-examples"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-HUmIrwmJyGvkCRHRiA069Aj25WBIGtJ7DJxwwF6OvWU="; 17 }; 18 19 npmDepsHash = "sha256-frNCo97GOwiClzQwRXHpqqjimJrmipsBebAshJqGZco="; 20 21 nativeBuildInputs = [ 22 elmPackages.elm 23 ]; 24 25 npmFlags = [ "--ignore-scripts" ]; 26 27 buildPhase = '' 28 runHook preBuild 29 make build 30 runHook postBuild 31 ''; 32 33 postConfigure = ( 34 elmPackages.fetchElmDeps { 35 elmPackages = import ./elm-srcs.nix; 36 elmVersion = elmPackages.elm.version; 37 registryDat = ./registry.dat; 38 } 39 ); 40 41 passthru.updateScript = ./update.sh; 42 43 meta = { 44 description = "Verify examples in your docs"; 45 homepage = "https://github.com/stoeffel/elm-verify-examples"; 46 license = lib.licenses.bsd3; 47 maintainers = with lib.maintainers; [ pyrox0 ]; 48 mainProgram = "elm-verify-examples"; 49 }; 50})