diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-21 16:53:20 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-21 16:53:20 +0200 |
commit | cee7b55f5969842311ef7b034188a4e46543d822 (patch) | |
tree | 852c4a91139c48e5998d05606a5721af181c878a /pkgs/by-name | |
parent | refactor(home/nvim/plgs/todo-comments): Migrate to RFC42 `settings` key (diff) | |
download | nixos-config-cee7b55f5969842311ef7b034188a4e46543d822.tar.gz nixos-config-cee7b55f5969842311ef7b034188a4e46543d822.zip |
fix(pkgs/iamb): Temporarily include as pkg
This allows me to rebuild the system *before* the pr, updating imab in nixpkgs, is merged. Otherwise, iamb would cause the systemb build to fail, as it's affected by the `time` problem.
Diffstat (limited to '')
-rw-r--r-- | pkgs/by-name/ia/iamb/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/ia/iamb/package.nix b/pkgs/by-name/ia/iamb/package.nix new file mode 100644 index 00000000..27e1ff23 --- /dev/null +++ b/pkgs/by-name/ia/iamb/package.nix @@ -0,0 +1,41 @@ +# TODO: Remove this, whence the nixpkgs pr is merged: https://github.com/NixOS/nixpkgs/pull/336278 <2024-08-21> +{ + lib, + rustPlatform, + fetchFromGitHub, + installShellFiles, + darwin, + stdenv, +}: +rustPlatform.buildRustPackage rec { + pname = "iamb"; + version = "0.0.10"; + + src = fetchFromGitHub { + owner = "ulyssa"; + repo = "iamb"; + rev = "v${version}"; + hash = "sha256-cjBSWUBgfwdLnpneJ5XW2TdOFkNc+Rc/wyUp9arZzwg="; + }; + + cargoHash = "sha256-a5y8nNFixOxJPNDOzvFFRqVrY2jsirCud2ZJJ8OvRhQ="; + + nativeBuildInputs = [installShellFiles]; + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.AppKit + ]; + + postInstall = '' + OUT_DIR=$releaseDir/build/iamb-*/out + installManPage $OUT_DIR/iamb.{1,5} + ''; + + meta = with lib; { + description = "Matrix client for Vim addicts"; + mainProgram = "iamb"; + homepage = "https://github.com/ulyssa/iamb"; + changelog = "https://github.com/ulyssa/iamb/releases/tag/${src.rev}"; + license = licenses.asl20; + maintainers = with maintainers; [meain]; + }; +} |