mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
qcard: init at 0.7.1
This commit is contained in:
parent
930336411c
commit
43d1a2fc3e
38
pkgs/tools/networking/qcard/default.nix
Normal file
38
pkgs/tools/networking/qcard/default.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromSourcehut
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "qcard";
|
||||||
|
version = "0.7.1";
|
||||||
|
|
||||||
|
src = fetchFromSourcehut {
|
||||||
|
owner = "~psic4t";
|
||||||
|
repo = "qcard";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-OwmJSeAOZTX7jMhoLHSIJa0jR8zCadISQF/PqFqltRY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = null;
|
||||||
|
|
||||||
|
# Replace "config-sample.json" in error message with the absolute path
|
||||||
|
# to that config file in the nix store
|
||||||
|
preBuild = ''
|
||||||
|
substituteInPlace helpers.go \
|
||||||
|
--replace " config-sample.json " " $out/share/qcard/config-sample.json "
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/share/qcard
|
||||||
|
cp config-sample.json $out/share/qcard/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "CLI addressbook application for CardDAV servers written in Go";
|
||||||
|
homepage = "https://git.sr.ht/~psic4t/qcard";
|
||||||
|
license = lib.licenses.gpl3Plus;
|
||||||
|
mainProgram = "qcard";
|
||||||
|
maintainers = with lib.maintainers; [ antonmosich ];
|
||||||
|
};
|
||||||
|
}
|
@ -27408,6 +27408,8 @@ with pkgs;
|
|||||||
|
|
||||||
qcal = callPackage ../tools/networking/qcal/default.nix { };
|
qcal = callPackage ../tools/networking/qcal/default.nix { };
|
||||||
|
|
||||||
|
qcard = callPackage ../tools/networking/qcard { };
|
||||||
|
|
||||||
rake = callPackage ../development/tools/build-managers/rake { };
|
rake = callPackage ../development/tools/build-managers/rake { };
|
||||||
|
|
||||||
rakkess = callPackage ../development/tools/rakkess { };
|
rakkess = callPackage ../development/tools/rakkess { };
|
||||||
|
Loading…
Reference in New Issue
Block a user