Package Lando from .deb

Hello guys,

I am trying to make a lando ( package for NixOS. I am not at all an expert in nix and already tried to google and see how to create new packages from deb.

This is what I cam up with so far:

{ stdenv, dpkg, docker-compose, gcc10, nodejs-14_x, glibc, gcc-unwrapped, autoPatchelfHook, zlib }:

  # Please keep the version x.y.0.z and do not update to x.y.76.z because the
  # source of the latter disappears much faster.
  version = "1.0.0";

  src = ./lando-stable.deb;

in stdenv.mkDerivation {
  name = "lando-${version}";

  system = "x86_64-linux";

  inherit src;

  # Required for compilation
  nativeBuildInputs = [
    autoPatchelfHook # Automatically setup the loader, and do the magic

  # Required at running time
  buildInputs = [

  unpackPhase = "true";

  # Extract and copy executable in $out/bin
  installPhase = ''
    mkdir -p $out
    dpkg -x $src $out
    chmod 755 $out

  meta = with stdenv.lib; {
    description = "Lando";
    homepage =;
    license =;
    maintainers = with stdenv.lib.maintainers; [ ];
    platforms = [ "x86_64-linux" ];

But still, after nix-build I can not run the executable and I can not figure out what the problem is.
I was thinking, maybe it is the dependency for docker-compose?

Any help would be highly appreciated. (If you would like, I posted as well a job, so happy to pay for the solution:

Thanks in advance,