3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/irc/tiny/default.nix

42 lines
1 KiB
Nix
Raw Normal View History

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.
cargoPatches = [
2021-08-08 17:04:59 +01:00
./fix-Cargo.lock.patch
];
2020-01-03 10:18:45 +00:00
cargoBuildFlags = lib.optionals stdenv.isLinux [ "--features=desktop-notifications" ];
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";
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
};
}