nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 34 lines 826 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6}: 7 8rustPlatform.buildRustPackage (finalAttrs: { 9 pname = "meowpdf"; 10 version = "1.2.0"; 11 12 src = fetchFromGitHub { 13 owner = "monoamine11231"; 14 repo = "meowpdf"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-2/hg0zXgnJwvQv5WcRc36x1StXVLkl81EmujGj87PKM="; 17 }; 18 19 cargoHash = "sha256-OH+0Pxb4QcRkjT2cOi9GJa5jss1DaMKUzVSmiwyIoAg="; 20 21 nativeBuildInputs = [ 22 pkg-config 23 rustPlatform.bindgenHook 24 ]; 25 26 meta = { 27 description = "PDF viewer for the Kitty terminal with GUI-like usage and Vim-like keybindings written in Rust"; 28 homepage = "https://github.com/monoamine11231/meowpdf"; 29 license = lib.licenses.mit; 30 maintainers = with lib.maintainers; [ arthsmn ]; 31 mainProgram = "meowpdf"; 32 platforms = lib.platforms.linux; 33 }; 34})