Unverified Commit d378c9a9 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

tytools: 0.9.9 -> 0.9.8 (#387881)

parents 1fecfe34 1497e5b4
Loading
Loading
Loading
Loading
+12 −36
Original line number Diff line number Diff line
@@ -5,58 +5,34 @@
  cmake,
  pkg-config,
  wrapQtAppsHook,
  qt6,
  qtbase,
}:

stdenv.mkDerivation rec {
  pname = "tytools";
  version = "0.9.9";
  version = "0.9.8";

  src = fetchFromGitHub {
    owner = "Koromix";
    repo = "rygel";
    tag = "tytools/${version}";
    hash = "sha256-nQZaNYOTkx79UC0RHencKIQFSYUnQ9resdmmWTmgQxA=";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-MKhh0ooDZI1Ks8vVuPRiHhpOqStetGaAhE2ulvBstxA=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
    qt6.wrapQtAppsHook
    wrapQtAppsHook
  ];

  buildInputs = [
    qt6.qtbase
    qtbase
  ];

  buildPhase = ''
    runHook preBuild

    ./bootstrap.sh
    ./felix -p Fast tyuploader
    ./felix -p Fast tycmd
    ./felix -p Fast tycommander

    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin $out/share/applications
    cp bin/Fast/tyuploader $out/bin/
    cp bin/Fast/tycmd $out/bin/
    cp bin/Fast/tycommander $out/bin/
    cp src/tytools/tycommander/tycommander_linux.desktop $out/share/applications/tycommander.desktop
    cp src/tytools/tyuploader/tyuploader_linux.desktop $out/share/applications/tyuploader.desktop

    runHook postInstall
  '';

  meta = {
  meta = with lib; {
    description = "Collection of tools to manage Teensy boards";
    homepage = "https://koromix.dev/tytools";
    license = lib.licenses.unlicense;
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ ahuzik ];
    license = licenses.unlicense;
    platforms = platforms.unix;
    maintainers = with maintainers; [ ahuzik ];
  };
}