clipster: fixup
the previous version is broken, when you run the daemon, it says: ``` Traceback (most recent call last): File "/nix/store/bzxnrc2lzcd8d8zbfx65vxypijjkhya6-clipster-1.4.1/bin/.clipster-wrapped", line 21, in <module> require_version("Gtk", "3.0") File "/nix/store/s5a6d9v9m939kw6ih9mq9v2bcnbi7cdv-python3-3.6.4-env/lib/python3.6/site-packages/gi/__init__.py", line 130, in require_version raise ValueError('Namespace %s not available' % namespace) ValueError: Namespace Gtk not available ```
This commit is contained in:
parent
4d4340805b
commit
66589e4dc7
|
@ -1,4 +1,5 @@
|
|||
{fetchFromGitHub , stdenv, makeWrapper, python3, gtk3, libwnck3 }:
|
||||
{fetchFromGitHub , stdenv, python3, gtk3, libwnck3,
|
||||
gobjectIntrospection, wrapGAppsHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "clipster-${version}";
|
||||
|
@ -13,15 +14,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
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; {
|
||||
|
|
Loading…
Reference in a new issue