fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / ud / udict / package.nix
blob121e30e664ed8f3ce8ac578b54a0c735671cec6e
2   lib,
3   stdenv,
4   rustPlatform,
5   fetchFromGitHub,
6   pkg-config,
7   openssl,
8   darwin,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "udict";
13   version = "0.1.2";
15   src = fetchFromGitHub {
16     owner = "lsmb";
17     repo = "udict";
18     rev = "v${version}";
19     hash = "sha256-vcyzMw2tWil4MULEkf25S6kXzqMG6JXIx6GibxxspkY=";
20   };
22   cargoHash = "sha256-WI+dz7FKa3kot3gWr/JK/v6Ua/u2ioZ04Jwk8t9r1ls=";
24   cargoPatches = [
25     ./0001-update-version-in-lock-file.patch
26   ];
28   nativeBuildInputs = [
29     pkg-config
30   ];
32   buildInputs =
33     [
34       openssl
35     ]
36     ++ lib.optionals stdenv.hostPlatform.isDarwin [
37       darwin.apple_sdk.frameworks.CoreFoundation
38       darwin.apple_sdk.frameworks.Security
39     ];
41   meta = with lib; {
42     description = "Urban Dictionary CLI - written in Rust";
43     homepage = "https://github.com/lsmb/udict";
44     license = licenses.mit;
45     maintainers = [ ];
46     mainProgram = "udict";
47   };