Skip to content
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

Merged
merged 1 commit into from Aug 17, 2018
Merged

rainloop: Init at 1.12.1 #42740

merged 1 commit into from Aug 17, 2018

Conversation

dasJ
Copy link
Member

@dasJ dasJ commented Jun 28, 2018

Motivation for this change

I'm using rainloop webmail on my legacy (non-NixOS) servers.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@@ -0,0 +1,33 @@
{ stdenv, fetchurl, unzip, dataPath ? "/etc/rainloop",
edition ? "", hash ? "bf558752ce5035dc036702878f453fa4ba3da68c25e77271a079ac285d8acf76" }: stdenv.mkDerivation rec {
Copy link
Member

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>";
  };
})

license = licenses.agpl3;
platforms = platforms.all;
maintainers = with maintainers; [ das_j ];
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hash = "0hz9pqz398hnflx26nngdfijzmdqmxh4vi568w2974l55hzml1v8";
};

rainloop-standard = callPackage ../servers/rainloop { };
Copy link
Member

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;

@dasJ
Copy link
Member Author

dasJ commented Aug 7, 2018

@Mic92 Thank you for that great suggestion! I rewrote and rebased it according to your proposal

@dasJ dasJ changed the title rainloop: Init at 1.12.0 rainloop: Init at 1.12.1 Aug 10, 2018
@Mic92 Mic92 merged commit 0d94159 into NixOS:master Aug 17, 2018
@dasJ dasJ deleted the rainloop branch August 19, 2018 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants