nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 46 lines 923 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, pkg-config 5, ncurses 6, openssl 7, stdenv 8, darwin 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "taizen"; 13 version = "unstable-2020-05-02"; 14 15 src = fetchFromGitHub { 16 owner = "NerdyPepper"; 17 repo = pname; 18 rev = "5e88a55abaa2bf4356aa5bc783c2957e59c63216"; 19 sha256 = "sha256-cMykIh5EDGYZMJ5EPTU6G8YDXxfUzzfRfEICWmDUdrA="; 20 }; 21 22 cargoLock = { 23 lockFile = ./Cargo.lock; 24 }; 25 26 nativeBuildInputs = [ pkg-config ]; 27 28 buildInputs = [ 29 ncurses 30 openssl 31 ] ++ lib.optionals stdenv.isDarwin [ 32 darwin.apple_sdk.frameworks.Security 33 ]; 34 35 # update Cargo.lock to work with openssl 3 36 postPatch = '' 37 ln -sf ${./Cargo.lock} Cargo.lock 38 ''; 39 40 meta = with lib; { 41 description = "curses based mediawiki browser"; 42 homepage = "https://github.com/nerdypepper/taizen"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ figsoda ]; 45 }; 46}