nixpkgs/pkgs/games/wyvern/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

34 lines
761 B
Nix

{ lib
, fetchCrate
, rustPlatform
, cmake
, pkg-config
, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "wyvern";
version = "1.4.1";
src = fetchCrate {
inherit pname version;
hash = "sha256-OjL3wEoh4fT2nKqb7lMefP5B0vYyUaTRj09OXPEVfW4=";
};
cargoPatches = [ ./cargo-lock.patch ];
cargoHash = "sha256-cwk8yFt8JrYkYlNUW9n/bgMUA6jyOpG0TSh5C+eERLY=";
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ openssl ];
meta = with lib; {
description = "A simple CLI client for installing and maintaining linux GOG games";
mainProgram = "wyvern";
homepage = "https://git.sr.ht/~nicohman/wyvern";
license = licenses.gpl3;
maintainers = with maintainers; [ _0x4A6F ];
platforms = platforms.linux;
};
}