Unverified Commit e166d8aa authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

badgemagic: init (#476781)

parents 02811b18 3e5d10c5
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
{
  lib,
  flutter338,
  fetchFromGitHub,
}:

let
  version = "1.18.15";

  src = fetchFromGitHub {
    owner = "fossasia";
    repo = "badgemagic-app";
    tag = "v${version}";
    hash = "sha256-zQ7ajVHueyCJP2n81dogM5YytxOoJ/hJt/qYbmw64e0=";
  };
in
flutter338.buildFlutterApplication {
  pname = "badgemagic-app";
  inherit version src;

  pubspecLock = lib.importJSON ./pubspec.lock.json;

  meta = {
    description = "Badge Magic with LEDs - mobile and desktop app";
    homepage = "https://github.com/fossasia/badgemagic-app";
    license = with lib.licenses; [ asl20 ];
    maintainers = [ lib.maintainers.matthewcroughan ];
    platforms = [
      "aarch64-linux"
      "x86_64-linux"
    ];
    mainProgram = "badgemagic";
  };
}
+1126 −0

File added.

Preview size limit exceeded, changes collapsed.

+41 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  dbus,
  systemdLibs,
}:

rustPlatform.buildRustPackage {
  pname = "badgemagic-rs";
  version = "0.1.0-unstable-2025-07-15";

  src = fetchFromGitHub {
    owner = "fossasia";
    repo = "badgemagic-rs";
    rev = "5d745ab8fda418204425f3df0e969a98bf479f2d";
    hash = "sha256-IyPUPNbXkLNz/cuzVuzrD2iCE1ddeO3xkAOKhbrNU+k=";
  };

  cargoHash = "sha256-jT/pJLqdWGTpQFlnhuZo1FLqRQJWXCD2tuDB2AEyNPQ=";

  buildFeatures = [ "cli" ];

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    dbus
    systemdLibs
  ];

  meta = {
    description = "Badge Magic in Rust";
    homepage = "https://github.com/fossasia/badgemagic-rs";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ matthewcroughan ];
    mainProgram = "badgemagic-rs";
  };
}