571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, roboto
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "deckmaster";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "muesli";
|
|
repo = "deckmaster";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-1hZ7yAKTvkk20ho+QOqFEtspBvFztAtfmITs2uxhdmQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-DFssAic2YtXNH1Jm6zCDv1yPNz3YUXaFLs7j7rNHhlE=";
|
|
|
|
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 = "Application to control your Elgato Stream Deck on Linux";
|
|
mainProgram = "deckmaster";
|
|
homepage = "https://github.com/muesli/deckmaster";
|
|
changelog = "https://github.com/muesli/deckmaster/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|