2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, roboto
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "deckmaster";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.9.0";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "muesli";
|
|
|
|
repo = "deckmaster";
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-1hZ7yAKTvkk20ho+QOqFEtspBvFztAtfmITs2uxhdmQ=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-DFssAic2YtXNH1Jm6zCDv1yPNz3YUXaFLs7j7rNHhlE=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
proxyVendor = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Let the app find Roboto-*.ttf files (hard-coded file names).
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/deckmaster \
|
|
|
|
--prefix XDG_DATA_DIRS : "${roboto.out}/share/" \
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Application to control your Elgato Stream Deck on Linux";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "deckmaster";
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/muesli/deckmaster";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/muesli/deckmaster/releases/tag/v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ianmjones ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|