This commit is contained in:
Reid 2024-06-23 20:09:06 -07:00
parent aa522c199b
commit c699350a18
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
5 changed files with 44 additions and 0 deletions

20
overlays/rbw.nix Normal file
View file

@ -0,0 +1,20 @@
final: prev: {
rbw = prev.rbw.overrideAttrs (old: rec {
version = "1.11.0";
src = prev.fetchzip {
url = "https://git.tozt.net/rbw/snapshot/rbw-${version}.tar.gz";
hash = "sha256-5KZ6mYYJEqsqREhQ/DoEgvPSwagObBCx8SFsiIiWCsI=";
};
# we can't just override `cargoHash`, because of Nix
# https://github.com/NixOS/nixpkgs/issues/107070
cargoDeps = old.cargoDeps.overrideAttrs (
prev.lib.const {
name = "${old.pname}-vendor.tar.gz";
inherit src;
outputHash = "sha256-KlN31eNwywNVqwCl8s9r2RvEYl9/UMR2DR6Ov4ffwoc=";
}
);
});
}