nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 python3,
5 fetchFromGitHub,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "vcs_query";
10 version = "0.4.0";
11
12 src = fetchFromGitHub {
13 owner = "mageta";
14 repo = "vcs_query";
15 rev = "v${finalAttrs.version}";
16 sha256 = "05va0na9yxkpqhm9v0x3k58148qcf2bbcv5bnmj7vn9r7fwyjrlx";
17 };
18
19 nativeBuildInputs = [
20 python3
21 python3.pkgs.wrapPython
22 ];
23
24 dontBuild = true;
25
26 installPhase = ''
27 install -Dm0755 vcs_query.py $out/bin/vcs_query
28 patchShebangs $out/bin
29 buildPythonPath ${python3.pkgs.vobject};
30 patchPythonScript $out/bin/vcs_query
31 '';
32
33 meta = {
34 homepage = "https://github.com/mageta/vcs_query";
35 description = "Email query-command to use vCards in mutt and Vim";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ ma27 ];
38 mainProgram = "vcs_query";
39 };
40})