nur-packages

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

bin.nix (1101B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchfromgh,
      5   unzip,
      6   makeWrapper,
      7 }:
      8 
      9 stdenv.mkDerivation (finalAttrs: {
     10   pname = "serial-studio-bin";
     11   version = "1.1.7";
     12 
     13   src = fetchfromgh {
     14     owner = "Serial-Studio";
     15     repo = "Serial-Studio";
     16     name = "SerialStudio-${finalAttrs.version}-macOS.zip";
     17     hash = "sha256-Hl3HoBfDum4APCXpKwQTkrCdTu3UyCnbzHn1omxc9Nc=";
     18     version = "v${finalAttrs.version}";
     19   };
     20 
     21   sourceRoot = ".";
     22 
     23   nativeBuildInputs = [
     24     unzip
     25     makeWrapper
     26   ];
     27 
     28   installPhase = ''
     29     runHook preInstall
     30     mkdir -p $out/Applications
     31     mv *.app $out/Applications
     32     makeWrapper $out/{Applications/Serial\ Studio.app/Contents/MacOS/SerialStudio,bin/serial-studio}
     33     runHook postInstall
     34   '';
     35 
     36   meta = {
     37     description = "Multi-purpose serial data visualization & processing program";
     38     homepage = "https://serial-studio.github.io/";
     39     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
     40     license = lib.licenses.mit;
     41     maintainers = [ lib.maintainers.sikmir ];
     42     platforms = [
     43       "aarch64-darwin"
     44       "x86_64-darwin"
     45     ];
     46     skip.ci = true;
     47   };
     48 })