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

42 lines
748 B
Nix
Raw Permalink Normal View History

2023-03-05 12:27:09 +01:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage rec {
pname = "udict";
version = "0.1.2";
src = fetchFromGitHub {
owner = "lsmb";
repo = "udict";
rev = "v${version}";
2023-03-05 12:27:09 +01:00
hash = "sha256-vcyzMw2tWil4MULEkf25S6kXzqMG6JXIx6GibxxspkY=";
};
cargoHash = "sha256-KlWzcJtNBTLCDDH01vI1mn9H7LUqni5o/Q6PsNeI7HE=";
2023-03-05 12:27:09 +01:00
cargoPatches = [
./0001-update-version-in-lock-file.patch
];
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
];
2023-03-05 12:27:09 +01:00
meta = with lib; {
description = "Urban Dictionary CLI - written in Rust";
homepage = "https://github.com/lsmb/udict";
license = licenses.mit;
maintainers = [ ];
2024-02-11 03:19:15 +01:00
mainProgram = "udict";
2023-03-05 12:27:09 +01:00
};
}