nixpkgs/pkgs/applications/misc/deckmaster/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1 KiB
Nix
Raw Normal View History

2022-08-02 23:40:18 +02:00
{ lib
, stdenv
, buildGoModule
, fetchFromGitHub
, makeWrapper
, roboto
}:
buildGoModule rec {
pname = "deckmaster";
2023-03-13 21:20:02 +01:00
version = "0.9.0";
2022-08-02 23:40:18 +02:00
src = fetchFromGitHub {
owner = "muesli";
repo = "deckmaster";
2023-03-13 21:48:03 +01:00
rev = "refs/tags/v${version}";
hash = "sha256-1hZ7yAKTvkk20ho+QOqFEtspBvFztAtfmITs2uxhdmQ=";
2022-08-02 23:40:18 +02:00
};
2024-04-05 22:58:43 +02:00
vendorHash = "sha256-DFssAic2YtXNH1Jm6zCDv1yPNz3YUXaFLs7j7rNHhlE=";
2022-08-02 23:40:18 +02: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; {
description = "An application to control your Elgato Stream Deck on Linux";
mainProgram = "deckmaster";
2022-08-02 23:40:18 +02:00
homepage = "https://github.com/muesli/deckmaster";
2023-03-13 21:48:03 +01:00
changelog = "https://github.com/muesli/deckmaster/releases/tag/v${version}";
2022-08-02 23:40:18 +02:00
license = licenses.mit;
maintainers = with maintainers; [ ianmjones ];
platforms = platforms.linux;
};
}