btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / de / deckmaster / package.nix
blobeb913847221d57ca324a156a0c2fb7d436fac277
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , makeWrapper
5 , roboto
6 }:
8 buildGoModule rec {
9   pname = "deckmaster";
10   version = "0.9.0";
12   src = fetchFromGitHub {
13     owner = "muesli";
14     repo = "deckmaster";
15     rev = "refs/tags/v${version}";
16     hash = "sha256-1hZ7yAKTvkk20ho+QOqFEtspBvFztAtfmITs2uxhdmQ=";
17   };
19   vendorHash = "sha256-DFssAic2YtXNH1Jm6zCDv1yPNz3YUXaFLs7j7rNHhlE=";
21   proxyVendor = true;
23   nativeBuildInputs = [
24     makeWrapper
25   ];
27   ldflags = [
28     "-s"
29     "-w"
30   ];
32   # Let the app find Roboto-*.ttf files (hard-coded file names).
33   postFixup = ''
34     wrapProgram $out/bin/deckmaster \
35       --prefix XDG_DATA_DIRS : "${roboto.out}/share/" \
36   '';
38   meta = with lib; {
39     description = "Application to control your Elgato Stream Deck on Linux";
40     mainProgram = "deckmaster";
41     homepage = "https://github.com/muesli/deckmaster";
42     changelog = "https://github.com/muesli/deckmaster/releases/tag/v${version}";
43     license = licenses.mit;
44     maintainers = with maintainers; [ ];
45     platforms = platforms.linux;
46   };