Unverified Commit 5c33c8b0 authored by Tristan Ross's avatar Tristan Ross Committed by GitHub
Browse files

artisan: init at 3.1.0 (#393753)

parents dceccbd2 35def808
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3379,6 +3379,11 @@
    githubId = 33910565;
    name = "Abdallah Gamal";
  };
  bohreromir = {
    github = "bohreromir";
    githubId = 40412303;
    name = "bohreromir";
  };
  boj = {
    email = "brian@uncannyworks.com";
    github = "boj";
+38 −0
Original line number Diff line number Diff line
{
  lib,
  appimageTools,
  fetchurl,
}:
let
  pname = "artisan";
  version = "3.1.0";

  src = fetchurl {
    url = "https://github.com/artisan-roaster-scope/artisan/releases/download/v${version}/${pname}-linux-${version}.AppImage";
    hash = "sha256-PkrqX2CflSCR1e+4Y4K12iuCrYqDMecD1vf8GKz1StQ=";
  };

  appimageContents = appimageTools.extract {
    inherit pname version src;
  };
in
appimageTools.wrapType2 {
  inherit pname version src;

  extraInstallCommands = ''
    install -m 444 -D ${appimageContents}/org.artisan_scope.artisan.desktop $out/share/applications/org.artisan_scope.artisan.desktop
    install -m 444 -D ${appimageContents}/artisan.png $out/share/applications/artisan.png
  '';

  meta = {
    description = "visual scope for coffee roasters";
    homepage = "https://artisan-scope.org/";
    changelog = "https://github.com/artisan-roaster-scope/artisan/releases/tag/v${version}";
    downloadPage = "https://github.com/artisan-roaster-scope/artisan/releases";
    license = lib.licenses.gpl3Only;
    mainProgram = "artisan";
    sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
    maintainers = with lib.maintainers; [ bohreromir ];
    platforms = [ "x86_64-linux" ];
  };
}