Merge pull request #219676 from linuxissuper/add-udict-package
udict: init at 0.1.2
This commit is contained in:
commit
0d8beb12b4
@ -0,0 +1,25 @@
|
||||
From 4952ceece60ff2e7eabec45411b8824da6673bff Mon Sep 17 00:00:00 2001
|
||||
From: m <m@linuxistsuper.de>
|
||||
Date: Sun, 5 Mar 2023 11:25:40 +0100
|
||||
Subject: [PATCH] update version in lock file
|
||||
|
||||
---
|
||||
Cargo.lock | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Cargo.lock b/Cargo.lock
|
||||
index d571155..ca28bef 100644
|
||||
--- a/Cargo.lock
|
||||
+++ b/Cargo.lock
|
||||
@@ -1554,7 +1554,7 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
|
||||
|
||||
[[package]]
|
||||
name = "udict"
|
||||
-version = "0.1.1"
|
||||
+version = "0.1.2"
|
||||
dependencies = [
|
||||
"reqwest",
|
||||
"scraper",
|
||||
--
|
||||
2.38.4
|
||||
|
44
pkgs/applications/misc/udict/default.nix
Normal file
44
pkgs/applications/misc/udict/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, openssl
|
||||
, darwin
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "udict";
|
||||
version = "0.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lsmb";
|
||||
repo = "udict";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-vcyzMw2tWil4MULEkf25S6kXzqMG6JXIx6GibxxspkY=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-WI+dz7FKa3kot3gWr/JK/v6Ua/u2ioZ04Jwk8t9r1ls=";
|
||||
|
||||
cargoPatches = [
|
||||
./0001-update-version-in-lock-file.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreFoundation
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Urban Dictionary CLI - written in Rust";
|
||||
homepage = "https://github.com/lsmb/udict";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
@ -39461,4 +39461,6 @@ with pkgs;
|
||||
gnss-share = callPackage ../servers/gnss-share { };
|
||||
|
||||
ali = callPackage ../tools/networking/ali { };
|
||||
|
||||
udict = callPackage ../applications/misc/udict { };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user