about summary refs log tree commit diff
path: root/nixpkgs
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-04-15 12:04:47 +0000
committerAlyssa Ross <hi@alyssa.is>2020-04-15 12:18:20 +0000
commit7c1e770283fc2c219b0e5a8204915d6e2b785792 (patch)
tree198002c33516be2d61198ee8a14b5bdcd7560277 /nixpkgs
parent998467369a0da7ee18153ed8f59e4376cedaf95d (diff)
downloadnixlib-7c1e770283fc2c219b0e5a8204915d6e2b785792.tar
nixlib-7c1e770283fc2c219b0e5a8204915d6e2b785792.tar.gz
nixlib-7c1e770283fc2c219b0e5a8204915d6e2b785792.tar.bz2
nixlib-7c1e770283fc2c219b0e5a8204915d6e2b785792.tar.lz
nixlib-7c1e770283fc2c219b0e5a8204915d6e2b785792.tar.xz
nixlib-7c1e770283fc2c219b0e5a8204915d6e2b785792.tar.zst
nixlib-7c1e770283fc2c219b0e5a8204915d6e2b785792.zip
mblaze: install msuck and mblow
There are lots of other scripts in contrib that we should probably
also install, but I didn't feel like taking the time to review them
all and figure out what dependencies they would need.

It would have been a shame to add a mandatory dependency on Ruby (and
all that entails) to a package that otherwise has basically no
dependencies, so I've made the Ruby dependency optional.
Diffstat (limited to 'nixpkgs')
-rw-r--r--nixpkgs/pkgs/applications/networking/mailreaders/mblaze/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/applications/networking/mailreaders/mblaze/default.nix b/nixpkgs/pkgs/applications/networking/mailreaders/mblaze/default.nix
index ba8f272203bc..45d28a0239b3 100644
--- a/nixpkgs/pkgs/applications/networking/mailreaders/mblaze/default.nix
+++ b/nixpkgs/pkgs/applications/networking/mailreaders/mblaze/default.nix
@@ -1,10 +1,10 @@
-{ stdenv, fetchFromGitHub, fetchpatch, libiconv }:
+{ stdenv, lib, fetchFromGitHub, fetchpatch, libiconv, ruby ? null }:
 
 stdenv.mkDerivation rec {
   pname = "mblaze";
   version = "0.5.1";
 
-  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv ];
+  buildInputs = [ ruby ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
 
   src = fetchFromGitHub {
     owner = "chneukirchen";
@@ -24,9 +24,11 @@ stdenv.mkDerivation rec {
 
   postInstall = ''
     install -Dm644 -t $out/share/zsh/site-functions contrib/_mblaze
+  '' + lib.optionalString (ruby != null) ''
+    install -Dt $out/bin contrib/msuck contrib/mblow
   '';
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     homepage = https://github.com/chneukirchen/mblaze;
     description = "Unix utilities to deal with Maildir";
     license = licenses.cc0;