diff options
author | Patrizio Bekerle <patrizio@bekerle.com> | 2023-05-04 09:39:45 +0200 |
---|---|---|
committer | Patrizio Bekerle <patrizio@bekerle.com> | 2023-05-04 09:40:19 +0200 |
commit | 8a00768ffb9b27f8885ed5b766ff8080280f11bb (patch) | |
tree | e3b103e844d2b7298fa2142d486c65c608cd9669 /pkgs/development/tools/qc | |
parent | 35e6df34dcc39ce837a41c4da2258f38ae47468e (diff) |
qc: init at 0.0.4
Diffstat (limited to 'pkgs/development/tools/qc')
-rw-r--r-- | pkgs/development/tools/qc/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/tools/qc/default.nix b/pkgs/development/tools/qc/default.nix new file mode 100644 index 0000000000000..4e9f355108294 --- /dev/null +++ b/pkgs/development/tools/qc/default.nix @@ -0,0 +1,40 @@ +{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: + +buildGoModule rec { + pname = "qc"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "qownnotes"; + repo = "qc"; + rev = "v${version}"; + hash = "sha256-6dH7pmsd7kUgwHplvCfNqoq/ucDY/UZnyVxC3VvV+fQ="; + }; + + vendorHash = "sha256-7t5rQliLm6pMUHhtev/kNrQ7AOvmA/rR93SwNQhov6o="; + + ldflags = [ + "-s" "-w" "-X=github.com/qownnotes/qc/cmd.version=${version}" + ]; + + doCheck = false; + + subPackages = [ "." ]; + + nativeBuildInputs = [ + installShellFiles + ]; + + postInstall = '' + installShellCompletion --cmd qc \ + --zsh ./misc/completions/zsh/_qc + ''; + + meta = with lib; { + description = "QOwnNotes command-line snippet manager"; + homepage = "https://github.com/qownnotes/qc"; + license = licenses.mit; + maintainers = with maintainers; [ pbek totoroot ]; + platforms = platforms.unix; + }; +} |