2020-01-03 10:18:45 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, dbus
|
|
|
|
, openssl
|
2020-07-05 11:54:21 +01:00
|
|
|
, Foundation
|
2020-01-03 10:18:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "tiny";
|
2021-08-08 17:04:59 +01:00
|
|
|
version = "0.9.0";
|
2020-01-03 10:18:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osa1";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-08 17:04:59 +01:00
|
|
|
sha256 = "gKyHR3FZHDybaP38rqB8/gvr8T+mDO4QQxoTtWS+TlE=";
|
2020-01-03 10:18:45 +00:00
|
|
|
};
|
|
|
|
|
2021-08-08 17:04:59 +01:00
|
|
|
cargoSha256 = "0ChfW8vaqC2kCp4lpS0HOvhuihPw9G5TOmgwKzVDfws=";
|
2020-01-03 10:18:45 +00:00
|
|
|
|
2021-08-08 17:04:59 +01:00
|
|
|
# Fix Cargo.lock version. Remove with the next release.
|
2021-01-16 04:20:00 +00:00
|
|
|
cargoPatches = [
|
2021-08-08 17:04:59 +01:00
|
|
|
./fix-Cargo.lock.patch
|
2021-01-16 04:20:00 +00:00
|
|
|
];
|
2020-01-03 10:18:45 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = lib.optional stdenv.isLinux pkg-config;
|
2020-07-05 11:54:21 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isLinux [ dbus openssl ] ++ lib.optional stdenv.isDarwin Foundation;
|
2020-01-03 10:18:45 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A console IRC client";
|
|
|
|
homepage = "https://github.com/osa1/tiny";
|
2021-01-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/osa1/tiny/blob/v${version}/CHANGELOG.md";
|
2020-01-03 10:18:45 +00:00
|
|
|
license = licenses.mit;
|
2021-08-08 17:04:59 +01:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne vyp ];
|
2020-01-03 10:18:45 +00:00
|
|
|
};
|
|
|
|
}
|