Git Product home page Git Product logo

Comments (10)

siraben avatar siraben commented on July 25, 2024 1

Yes, I did.

default.nix
{ pkgs ? import <nixpkgs> { } }:
with pkgs;

libsForQt5.callPackage ./rmview.nix { }
rmview.nix
{ stdenv, fetchFromGitHub, mkDerivationWith, python3Packages }:

mkDerivationWith python3Packages.buildPythonApplication rec {
  pname = "rmview";
  version = "1.0";

  src = fetchFromGitHub {
    owner = "bordaigorl";
    repo = "rmview";
    rev = "v${version}";
    sha256 = "1d90cdvwxhdx5m9pv7wdnkrywnxsjs73z2w3xgrcafviwlpyy857";
  };

  patchPhase = "substituteInPlace src/rmview/rmview.py --replace 'from . import resources' ''";

  preFixup = ''
    makeWrapperArgs+=("''${qtWrapperArgs[@]}")
  '';

  propagatedBuildInputs = with python3Packages; [
    pyqt5
    paramiko
    twisted
  ];

  meta = with stdenv.lib; {
    homepage = "https://github.com/bordaigorl/rmview";
    description = "Library to get the currently playing song and artist from Spotify";
    license = licenses.mit;
    maintainers = with maintainers; [ siraben ];
    platforms = platforms.unix;
  };
}

from rmview.

siraben avatar siraben commented on July 25, 2024 1

For anyone reading this, the issue @anka-213 encountered was fixed by disabling sandboxing in nix.conf since it is problematic on macOS.

from rmview.

siraben avatar siraben commented on July 25, 2024

I should note that this only happens when trying to build using Nix at rev e3a0384edf0fb05b9572be6813601d9bc8774de4
config.json

{
  "ssh": {
    "address": "10.11.99.1",
    "username": "root",
    "key": "~/.ssh/id_rsa",
    "timeout": 1
  },
  "orientation": "portrait",
  "pen_size": 10,
  "pen_color": "red",
  "background_color": "white"
}

from rmview.

siraben avatar siraben commented on July 25, 2024

Found the cause of the issue, the rM-vnc-server mxc_epdc_fb_damage.ko binaries on the rM had to be overwritten.

from rmview.

anka-213 avatar anka-213 commented on July 25, 2024

Did you succeed at packaging this?

from rmview.

anka-213 avatar anka-213 commented on July 25, 2024

Thanks!

from rmview.

anka-213 avatar anka-213 commented on July 25, 2024

Hmm, I get a segfault:

  copying src/rmview/viewer.py -> build/lib/rmview
  copying src/rmview/rmparams.py -> build/lib/rmview
  copying src/rmview/__init__.py -> build/lib/rmview
  copying src/rmview/connection.py -> build/lib/rmview
  copying src/rmview/rfb.py -> build/lib/rmview
  copying src/rmview/workers.py -> build/lib/rmview
  copying src/rmview/__main__.py -> build/lib/rmview
  installing to build/bdist.macosx-10.6-x86_64/wheel
  running install
  /nix/store/31g9w6f5nmbcqjllx6cflazaxh7f3008-setuptools-setup-hook/nix-support/setup-hook: line 17:  2730 Segmentation fault: 11  /nix/store/65gmh01007csxmd6bbkvas8zkhlw0k7n-python3-3.8.6/bin/python3.8 nix_run_setup bdist_wheel

Do you have any clue why?

from rmview.

siraben avatar siraben commented on July 25, 2024

Interesting. What platform are you on?

from rmview.

anka-213 avatar anka-213 commented on July 25, 2024

Darwin

from rmview.

siraben avatar siraben commented on July 25, 2024

Is your channel up to date? The only inconsistency between our machines then must be the channel since I put <nixpkgs> as the default value for pkgs.

Edit: I just ran nix-build --check and it still builds as before.

from rmview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.