Skip to content

Commit b86d213

Browse files
committed
add fnox, yt-dlp stable
1 parent 8c1311b commit b86d213

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@
247247

248248
sysdo = pkgs.callPackage ./pkgs/sysdo/package.nix { };
249249
cb = pkgs.callPackage ./pkgs/cb/package.nix { };
250+
fnox = pkgs.callPackage ./pkgs/fnox/package.nix { };
250251
stable = inputs.stable.legacyPackages.${system};
251252
determinate-nixd = inputs.determinate.packages.${system}.default;
252253
nix = inputs.determinate.inputs.nix.packages.${system}.default;

modules/home-manager/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,16 @@
7272
flamelens
7373
flawz
7474
flyctl
75+
fnox
7576
fx
7677
gawk
7778
gdu
7879
git-absorb
79-
gotools
8080
gnugrep
8181
gnupg
8282
gnused
8383
go-task
84+
gotools
8485
grype
8586
helm-docs
8687
httpie
@@ -216,5 +217,6 @@
216217
ripgrep.enable = true;
217218
starship.enable = true;
218219
yt-dlp.enable = true;
220+
yt-dlp.package = pkgs.stable.yt-dlp;
219221
};
220222
}

pkgs/fnox/package.nix

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
rustPlatform,
6+
pkg-config,
7+
openssl,
8+
}:
9+
10+
rustPlatform.buildRustPackage rec {
11+
pname = "fnox";
12+
version = "1.13.0";
13+
14+
src = fetchFromGitHub {
15+
owner = "jdx";
16+
repo = "fnox";
17+
rev = "v${version}";
18+
hash = "sha256-IK9WaOq8zJ95pvyIxNjdR5DQkFusK0LnjVq2qhlEi/8=";
19+
};
20+
21+
cargoHash = "sha256-CG2TFLC+3sJqjmPaAF6bliURSvfmpicL1kTKNxv51hk=";
22+
23+
nativeBuildInputs = [ pkg-config ];
24+
25+
buildInputs = [ openssl ];
26+
27+
# Some tests require network access or cloud credentials
28+
doCheck = false;
29+
30+
# Shell completions require config files that don't exist in build sandbox
31+
# Users can generate completions manually with: fnox completion <shell>
32+
# postInstall = ''
33+
# installShellCompletion --cmd fnox \
34+
# --bash <($out/bin/fnox completion bash) \
35+
# --fish <($out/bin/fnox completion fish) \
36+
# --zsh <($out/bin/fnox completion zsh)
37+
# '';
38+
39+
meta = with lib; {
40+
description = "Encrypted/remote secret manager with unified interface for development, CI, and production";
41+
homepage = "https://fnox.jdx.dev";
42+
changelog = "https://github.com/jdx/fnox/releases/tag/v${version}";
43+
license = licenses.mit;
44+
maintainers = [ ];
45+
mainProgram = "fnox";
46+
platforms = platforms.unix;
47+
};
48+
}

0 commit comments

Comments
 (0)