depot/third_party/nixpkgs/pkgs/applications/misc/taizen/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

46 lines
923 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, ncurses
, openssl
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "taizen";
version = "unstable-2020-05-02";
src = fetchFromGitHub {
owner = "NerdyPepper";
repo = pname;
rev = "5e88a55abaa2bf4356aa5bc783c2957e59c63216";
sha256 = "sha256-cMykIh5EDGYZMJ5EPTU6G8YDXxfUzzfRfEICWmDUdrA=";
};
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
ncurses
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
# update Cargo.lock to work with openssl 3
postPatch = ''
ln -sf ${./Cargo.lock} Cargo.lock
'';
meta = with lib; {
description = "curses based mediawiki browser";
homepage = "https://github.com/nerdypepper/taizen";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}