From 6a726f066ecfd0e78b8a843ef73bbb9a00e2b169 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 17 Jun 2018 03:01:41 -0700 Subject: [PATCH] [NixOS] Build clipit from source --- nixos/configuration.nix | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 2d4100c8..35b62090 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -20,14 +20,21 @@ let }; propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [pkgs.libappindicator-gtk3]; }); - # clipit-master = pkgs.clipt.overrideAttrs (oldAttrs: rec { - # src = fetchFromGitHub { - # owner = "shantzu"; - # repo = "ClipIt"; - # rev = "eb9adaf2b5fd65aac1e83d6544b9076aae6af5b7"; - # sha256 = "01if8y93wa0mwbkzkzx2v1vqh47zlz4k1dysl6yh5rmppd1psknz"; - # }; - # }); + clipit-master = pkgs.clipit.overrideAttrs (oldAttrs: rec { + version = "9741c39382a3f6e4c03eac6905a49794d07c465a"; + preConfigure = "./autogen.sh"; + configureFlags = ["--with-gtk3" "--enable-appindicator"]; + src = pkgs.fetchFromGitHub { + owner = "IvanMalison"; + repo = "ClipIt"; + sha256 = "13lddvbsp16nir9ibllr403qxhwyh4h2bh6774icbb250pghykjx"; + rev = version; + }; + buildInputs = with pkgs; [ + autoconf automake intltool gtk3 xdotool hicolor-icon-theme + libappindicator-gtk3 + ]; + }); in { nixpkgs.config.allowUnfree = true; @@ -90,7 +97,7 @@ in # Desktop autorandr - clipit + clipit-master compton feh networkmanagerapplet