aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/tools/the-way
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-12-21 06:05:12 +0100
committerMx Kookie <kookie@spacekookie.de>2020-12-21 06:05:12 +0100
commitf107be784e6d5da5f90735765a68fdff96acfbb4 (patch)
tree145573a598009fb6adbd5ef7fbce0a850681f5f0 /infra/libkookie/nixpkgs/pkgs/development/tools/the-way
parent2e04b35e5ac3a9123cafffbc84494fa4d389cca0 (diff)
parente9158eca70ae59e73fae23be5d13d3fa0cfc78b4 (diff)
Add 'infra/libkookie/nixpkgs/' from commit 'e9158eca70ae59e73fae23be5d13d3fa0cfc78b4'
git-subtree-dir: infra/libkookie/nixpkgs git-subtree-mainline: 2e04b35e5ac3a9123cafffbc84494fa4d389cca0 git-subtree-split: e9158eca70ae59e73fae23be5d13d3fa0cfc78b4
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/tools/the-way')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/tools/the-way/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/tools/the-way/default.nix b/infra/libkookie/nixpkgs/pkgs/development/tools/the-way/default.nix
new file mode 100644
index 000000000000..5506201b7427
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/tools/the-way/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchFromGitHub, rustPlatform, installShellFiles, AppKit, Security }:
+
+rustPlatform.buildRustPackage rec {
+ pname = "the-way";
+ version = "0.12.1";
+
+ src = fetchFromGitHub {
+ owner = "out-of-cheese-error";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "0lvkrfszmn594n9qkf518c38c0fwzm32y997wlf28l3hpj6yqddq";
+ };
+
+ nativeBuildInputs = [ installShellFiles ];
+
+ buildInputs = stdenv.lib.optionals stdenv.isDarwin [ AppKit Security ];
+
+ cargoSha256 = "1aiyfsvmrqcmlw0z1944i9s5g3yxc39na5mf16pb9a4bhw8zcwjr";
+ checkFlagsArray = stdenv.lib.optionals stdenv.isDarwin [ "--skip=copy" ];
+ cargoParallelTestThreads = false;
+
+ postInstall = ''
+ $out/bin/the-way config default tmp.toml
+ for shell in bash fish zsh; do
+ THE_WAY_CONFIG=tmp.toml $out/bin/the-way complete $shell > the-way.$shell
+ installShellCompletion the-way.$shell
+ done
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Terminal code snippets manager";
+ homepage = "https://github.com/out-of-cheese-error/the-way";
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ numkem ];
+ };
+}