all repos — nixfiles @ 863cff1fc16e66cf15c2c3d4d83179329611ea97

System and user configuration, managed by nix and home-manager

Use ripcord derivation from nixos-unstable
Alan Pearce alan@alanpearce.eu
Wed, 05 Aug 2020 12:15:00 +0200
commit

863cff1fc16e66cf15c2c3d4d83179329611ea97

parent

2ebfb8587f1f977ff9e4599be1d9cd00ad1835ea

3 files changed, 2 insertions(+), 30 deletions(-)

jump to
M user/overlays/extra-packages.nixuser/overlays/extra-packages.nix
@@ -3,7 +3,6 @@ {   lumen = super.callPackage ../packages/lumen {
     buildGoPackage = self.buildGo112Package;
   };
-  ripcord = super.callPackage ../packages/ripcord {};
   node2nixPackages = import ../packages/node2nix {
     pkgs = super;
   };
D user/packages/ripcord/default.nix
@@ -1,28 +0,0 @@-{ pkgs, lib, fetchurl, makeDesktopItem, ... }:
-
-let
-  pname = "ripcord";
-  version = "0.4.24";
-
-  desktopItem = makeDesktopItem {
-    name = "Ripcord";
-    exec = "ripcord";
-    comment = "Desktop chat client for Slack (and Discord)";
-    desktopName = "Ripcord";
-    categories = "Network;InstantMessaging;Chat";
-    genericName = "Team messenger";
-  };
-in
-pkgs.appimageTools.wrapType2 rec {
-  name = "${pname}-${version}";
-
-  src = fetchurl {
-    url = "https://cancel.fm/dl/Ripcord-${version}-x86_64.AppImage";
-    sha256 = "0rscmnwxvbdl0vfx1pz7x5gxs9qsjk905zmcad4f330j5l5m227z";
-  };
-
-  extraInstallCommands = ''
-    mv $out/bin/{${name},${pname}}
-    ${desktopItem.buildCommand}
-  '';
-}
M user/settings/satoshipay.nixuser/settings/satoshipay.nix
@@ -2,6 +2,7 @@ { config, lib, pkgs, ... }: 
 let
   inherit (pkgs) stdenv;
+  unstablePkgs = if !stdenv.isDarwin then import <nixos-unstable> {} else {};
   spGitConfig = {
     user.email = "alan@satoshipay.io";
   };
@@ -36,7 +37,7 @@ [     docker_compose
 
     redis-desktop-manager
-    ripcord
+    unstablePkgs.ripcord
     robo3t
   ]));