nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

bin.nix (947B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchfromgh,
      5   p7zip,
      6   makeWrapper,
      7   qtcreator,
      8 }:
      9 
     10 stdenv.mkDerivation (finalAttrs: {
     11   pname = "qtcreator-bin";
     12   version = "14.0.2";
     13 
     14   src = fetchfromgh {
     15     owner = "qt-creator";
     16     repo = "qt-creator";
     17     name = "qtcreator-macos-universal-${finalAttrs.version}.7z";
     18     hash = "sha256-F86s8REbg+vMeEb7CDtatLchwZhPsJjj5SazicJyvBo=";
     19     version = "v${finalAttrs.version}";
     20   };
     21 
     22   sourceRoot = ".";
     23 
     24   nativeBuildInputs = [
     25     p7zip
     26     makeWrapper
     27   ];
     28 
     29   installPhase = ''
     30     runHook preInstall
     31     mkdir -p $out/Applications
     32     mv *.app $out/Applications
     33     makeWrapper $out/{Applications/Qt\ Creator.app/Contents/MacOS/Qt\ Creator,bin/qtcreator}
     34     runHook postInstall
     35   '';
     36 
     37   meta =
     38     with lib;
     39     qtcreator.meta
     40     // {
     41       sourceProvenance = with sourceTypes; [ binaryNativeCode ];
     42       maintainers = [ maintainers.sikmir ];
     43       platforms = [ "x86_64-darwin" ];
     44       skip.ci = true;
     45     };
     46 })