2020-01-03 10:18:45 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchpatch
|
|
|
|
, 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-01-16 04:20:00 +00:00
|
|
|
version = "0.8.0";
|
2020-01-03 10:18:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osa1";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-16 04:20:00 +00:00
|
|
|
sha256 = "07a50shv6k4fwl2gmv4j0maxaqqkjpwwmqkxkqs0gvx38lc5f7m7";
|
2020-01-03 10:18:45 +00:00
|
|
|
};
|
|
|
|
|
2021-01-16 04:20:00 +00:00
|
|
|
cargoSha256 = "009jqizj4qg1bqslna35myxcark40hwlqsz58fbps9nsgp1i0hq2";
|
2020-01-03 10:18:45 +00:00
|
|
|
|
2021-01-16 04:20:00 +00:00
|
|
|
cargoPatches = [
|
|
|
|
# Fix Cargo.lock version. Remove with the next release.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/osa1/tiny/commit/b1caf48a6399dad8875de1d965d1ad445e49585d.patch";
|
|
|
|
sha256 = "1zkjhx94nwmd69cfwwwzg51ipcwq01wyvgsmn0vq7iaa2h0d286i";
|
|
|
|
})
|
|
|
|
];
|
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;
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2020-01-03 10:18:45 +00:00
|
|
|
};
|
|
|
|
}
|