pkgs: add forex && passgen
All checks were successful
ci/woodpecker/cron/flake-lock-update Pipeline was successful
All checks were successful
ci/woodpecker/cron/flake-lock-update Pipeline was successful
This commit is contained in:
parent
4f910fbcc3
commit
287d63b41a
2 changed files with 56 additions and 0 deletions
30
pkgs/forex/default.nix
Normal file
30
pkgs/forex/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
rustPlatform,
|
||||||
|
fetchFromGitea,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
name = "forex";
|
||||||
|
src = fetchFromGitea {
|
||||||
|
domain = "git.flake.sh";
|
||||||
|
owner = "notohh";
|
||||||
|
repo = "forex";
|
||||||
|
rev = "de4b32b0d5bf0631404dd11c5878058bc7fd4a56";
|
||||||
|
sha256 = "sha256-d/iyg/tFF3N0I6LCSFU4U1vBzpz60s2FnT0GB4AuihE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [pkgs.pkg-config];
|
||||||
|
buildInputs = [pkgs.openssl];
|
||||||
|
|
||||||
|
cargoSha256 = "sha256-COWFG766DVWXbGm8raVSH1nBpsS5HdTat5BHzv7QR4o=";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "a CLI currency converter, written in rust, for practice";
|
||||||
|
mainProgram = "forex";
|
||||||
|
homepage = "https://git.flake.sh/notohh/forex";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [notohh];
|
||||||
|
};
|
||||||
|
}
|
26
pkgs/passgen/default.nix
Normal file
26
pkgs/passgen/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
rustPlatform,
|
||||||
|
fetchFromGitea,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
rustPlatform.buildRustPackage {
|
||||||
|
name = "passgen";
|
||||||
|
src = fetchFromGitea {
|
||||||
|
domain = "git.flake.sh";
|
||||||
|
owner = "notohh";
|
||||||
|
repo = "passgen";
|
||||||
|
rev = "fa2181af70b5efa0376a5f6ffa937073b2201339";
|
||||||
|
sha256 = "sha256-E77mzceKBaXOjW/C/aHfUltt1Wb7RAzvJzhlgmbxkoE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "sha256-A8W7Qz+8cy6sPjLBC5a4Brz+cCyGPeNM1f7oZ6pmfe0=";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "password generator for rust practice";
|
||||||
|
mainProgram = "passgen";
|
||||||
|
homepage = "https://git.flake.sh/notohh/passgen";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [notohh];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue