at 22.05-pre 31 lines 787 B view raw
1{ lib, stdenv, python3, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "vcs_query"; 5 version = "0.4.0"; 6 7 src = fetchFromGitHub { 8 owner = "mageta"; 9 repo = "vcs_query"; 10 rev = "v${version}"; 11 sha256 = "05va0na9yxkpqhm9v0x3k58148qcf2bbcv5bnmj7vn9r7fwyjrlx"; 12 }; 13 14 nativeBuildInputs = [ python3 python3.pkgs.wrapPython ]; 15 16 dontBuild = true; 17 18 installPhase = '' 19 install -Dm0755 vcs_query.py $out/bin/vcs_query 20 patchShebangs $out/bin 21 buildPythonPath ${python3.pkgs.vobject}; 22 patchPythonScript $out/bin/vcs_query 23 ''; 24 25 meta = with lib; { 26 homepage = "https://github.com/mageta/vcs_query"; 27 description = "eMail query-command to use vCards in mutt and Vim"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ ma27 ]; 30 }; 31}