badgemagic: init (#476781)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,41 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user