Merge pull request #33718 from magnetophon/clipster

clipster: 1.4.1 -> 1.5.0
This commit is contained in:
adisbladis 2018-01-25 18:38:53 +08:00 committed by GitHub
commit e401af5f98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,27 +1,25 @@
{fetchFromGitHub , stdenv, makeWrapper, python3, gtk3, libwnck3 }:
{fetchFromGitHub , stdenv, python3, gtk3, libwnck3,
gobjectIntrospection, wrapGAppsHook }:
stdenv.mkDerivation rec {
name = "clipster-${version}";
version = "1.4.1";
version = "1.5.0";
src = fetchFromGitHub {
owner = "mrichar1";
repo = "clipster";
rev = "${version}";
sha256 = "16gdrm985qwbrsmsqjfyh33glcmx678abl2jpq49djk2qrbhm49k";
sha256 = "0bj7fk19z3c29vxm3mcp3s7vggkigmz3hrn4pcsqgfh96i5i5203";
};
pythonEnv = python3.withPackages(ps: with ps; [ pygobject3 ]);
buildInputs = [ pythonEnv gtk3 libwnck3 ];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ pythonEnv gtk3 libwnck3 gobjectIntrospection wrapGAppsHook ];
installPhase = ''
sed -i 's/python/python3/g' clipster
mkdir -p $out/bin/
cp clipster $out/bin/
wrapProgram "$out/bin/clipster" \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH"
'';
meta = with stdenv.lib; {