New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rainloop: Init at 1.12.1 #42740
rainloop: Init at 1.12.1 #42740
Conversation
pkgs/servers/rainloop/default.nix
Outdated
@@ -0,0 +1,33 @@ | |||
{ stdenv, fetchurl, unzip, dataPath ? "/etc/rainloop", | |||
edition ? "", hash ? "bf558752ce5035dc036702878f453fa4ba3da68c25e77271a079ac285d8acf76" }: stdenv.mkDerivation rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to expose edition
or hash
.
It is easy to enough to override them with:
rainloop.overrideAttrs (old: {
src = fetchurl {
url = "https://github.com/RainLoop/rainloop-webmail/releases/download/v${version}/rainloop-professional${version}.zip";
sha256 = "<new-hash>";
};
})
pkgs/servers/rainloop/default.nix
Outdated
license = licenses.agpl3; | ||
platforms = platforms.all; | ||
maintainers = with maintainers; [ das_j ]; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a common
function like here? https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/sql/postgresql/default.nix
pkgs/top-level/all-packages.nix
Outdated
hash = "0hz9pqz398hnflx26nngdfijzmdqmxh4vi568w2974l55hzml1v8"; | ||
}; | ||
|
||
rainloop-standard = callPackage ../servers/rainloop { }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then this would be become:
inherit (callPackages ../servers/rainloop { }) rainloop-community rainloop-standard;
@Mic92 Thank you for that great suggestion! I rewrote and rebased it according to your proposal |
Motivation for this change
I'm using rainloop webmail on my legacy (non-NixOS) servers.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)