rime-wanxiang: remove buildPhase and close to upstream (#437189)

authored by Curious and committed by GitHub 126ca367 90bfafb5

+3 -28
+3 -28
pkgs/by-name/ri/rime-wanxiang/package.nix
··· 2 lib, 3 fetchFromGitHub, 4 stdenvNoCC, 5 - librime, 6 - rime-data, 7 nix-update-script, 8 }: 9 ··· 18 hash = "sha256-tCQ2mPOw7meA7ex7e4BgVco86MNNtxsSC9L6oaVebo4="; 19 }; 20 21 - nativeBuildInputs = [ 22 - librime 23 - ]; 24 - 25 - buildInputs = [ 26 - rime-data 27 - ]; 28 - 29 - dontConfigure = true; 30 - 31 - buildPhase = '' 32 - runHook preBuild 33 - 34 - for s in *.schema.yaml; do 35 - rime_deployer --compile "$s" . ${rime-data}/share/rime-data ./build 36 - done 37 - 38 - rm build/*.txt 39 - 40 - runHook postBuild 41 - ''; 42 - 43 installPhase = '' 44 runHook preInstall 45 46 - dst=$out/share/rime-data 47 - mkdir -p $dst 48 49 - rm -r .github custom LICENSE squirrel.yaml weasel.yaml *.md *.trime.yaml 50 mv default.yaml wanxiang_suggested_default.yaml 51 52 - cp -pr -t $dst * 53 54 runHook postInstall 55 '';
··· 2 lib, 3 fetchFromGitHub, 4 stdenvNoCC, 5 nix-update-script, 6 }: 7 ··· 16 hash = "sha256-tCQ2mPOw7meA7ex7e4BgVco86MNNtxsSC9L6oaVebo4="; 17 }; 18 19 installPhase = '' 20 runHook preInstall 21 22 + rm -rf README.md .git* custom LICENSE 23 24 mv default.yaml wanxiang_suggested_default.yaml 25 26 + mkdir -p $out/share 27 + cp -r . $out/share/rime-data 28 29 runHook postInstall 30 '';