nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 58 lines 1.7 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 fetchurl, 5 python3Packages, 6 readline, 7 ncurses, 8 canto-daemon, 9}: 10 11python3Packages.buildPythonApplication rec { 12 version = "0.9.9"; 13 format = "pyproject"; 14 pname = "canto-curses"; 15 16 src = fetchFromGitHub { 17 owner = "themoken"; 18 repo = "canto-curses"; 19 rev = "v${version}"; 20 sha256 = "1vzb9n1j4gxigzll6654ln79lzbrrm6yy0lyazd9kldyl349b8sr"; 21 }; 22 23 # Fixes the issue found here https://github.com/themoken/canto-curses/issues/59 24 patches = [ 25 (fetchurl { 26 url = "https://gitlab.archlinux.org/archlinux/packaging/packages/canto-curses/-/raw/6daa56bc5baebb2444c368a8208666ef484a6fc0/fix-build.patch"; 27 hash = "sha256-2TMNmwjUAGyenSDqxfI+U2hNeDZaj2CivfTfpX7CKgY="; 28 }) 29 ]; 30 31 build-system = with python3Packages; [ 32 setuptools 33 ]; 34 35 buildInputs = [ 36 readline 37 ncurses 38 canto-daemon 39 ]; 40 propagatedBuildInputs = [ canto-daemon ]; 41 42 meta = { 43 description = "Ncurses-based console Atom/RSS feed reader"; 44 mainProgram = "canto-curses"; 45 longDescription = '' 46 Canto is an Atom/RSS feed reader for the console that is meant to be 47 quick, concise, and colorful. It's meant to allow you to crank through 48 feeds like you've never cranked before by providing a minimal, yet 49 information packed interface. No navigating menus. No dense blocks of 50 unreadable white text. An interface with almost infinite customization 51 and extensibility using the excellent Python programming language. 52 ''; 53 homepage = "https://codezen.org/canto-ng/"; 54 license = lib.licenses.gpl2; 55 platforms = lib.platforms.linux; 56 maintainers = [ lib.maintainers.devhell ]; 57 }; 58}