!CXcIPzDZqFYqqXTaXa:matrix.org

nix-init

64 Members
https://github.com/nix-community/nix-init21 Servers

Load older messages


SenderMessageTime
3 Jul 2023
@andrewm:element.ioAndrew Morgan (anoa) {he/him} [away; back Mar 10] changed their profile picture.08:09:42
6 Jul 2023
@figsoda:matrix.orgfigsodav0.2.4 is here https://discourse.nixos.org/t/25035/1722:13:52
7 Jul 2023
@kranzes:matrix.org@kranzes:matrix.org

figsoda: I just tried using the Go dependency inference feature on unpackerr and it created this expression:

{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, stdenv
, darwin
, libayatana-appindicator
, xorg
}:

buildGoModule rec {
  pname = "unpackerr";
  version = "0.11.2";

  src = fetchFromGitHub {
    owner = "Unpackerr";
    repo = "unpackerr";
    rev = "v${version}";
    hash = "sha256-Jxg1gaMTJ/BbL8TQfPcyt1hYnT/LcL4j+m+jSeh5QyA=";
  };

  vendorHash = "sha256-yXFIBWOF72nXmT8+OSvF1aKBhCMBloLmGTfvNbV9ir4=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = lib.optionals stdenv.isDarwin [
    darwin.apple_sdk.frameworks.Cocoa
    darwin.apple_sdk.frameworks.Kernel
    darwin.apple_sdk.frameworks.WebKit
  ] ++ lib.optionals stdenv.isLinux [
    libayatana-appindicator
    xorg.libX11
    xorg.libXcursor
    xorg.libXi
    xorg.libXinerama
    xorg.libXrandr
  ];

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "Extracts downloads for Radarr, Sonarr, Lidarr, Readarr, and/or a Watch folder - Deletes extracted files after import";
    homepage = "https://github.com/Unpackerr/unpackerr";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}
22:04:31
@kranzes:matrix.org@kranzes:matrix.org

while the one in nixpkgs is this ```
{ lib, stdenv, fetchFromGitHub, buildGoModule, Cocoa, WebKit }:

buildGoModule rec {
pname = "unpackerr";
version = "0.11.2";

src = fetchFromGitHub {
owner = "davidnewhall";
repo = "unpackerr";
rev = "v${version}";
sha256 = "sha256-Jxg1gaMTJ/BbL8TQfPcyt1hYnT/LcL4j+m+jSeh5QyA=";
};

vendorHash = "sha256-yXFIBWOF72nXmT8+OSvF1aKBhCMBloLmGTfvNbV9ir4=";

buildInputs = lib.optionals stdenv.isDarwin [ Cocoa WebKit ];

ldflags = [ "-s" "-w" "-X golift.io/version.Version=${version}" ];

meta = with lib; {
description = "Extracts downloads for Radarr, Sonarr, Lidarr - Deletes extracted files after import";
homepage = "https://github.com/davidnewhall/unpackerr";
maintainers = with maintainers; [ nullx76 ];
license = licenses.mit;
};
}

22:04:47
@kranzes:matrix.org@kranzes:matrix.org *

while the one in nixpkgs is this

{ lib, stdenv, fetchFromGitHub, buildGoModule, Cocoa, WebKit }:

buildGoModule rec {
pname = "unpackerr";
version = "0.11.2";

src = fetchFromGitHub {
owner = "davidnewhall";
repo = "unpackerr";
rev = "v${version}";
sha256 = "sha256-Jxg1gaMTJ/BbL8TQfPcyt1hYnT/LcL4j+m+jSeh5QyA=";
};

vendorHash = "sha256-yXFIBWOF72nXmT8+OSvF1aKBhCMBloLmGTfvNbV9ir4=";

buildInputs = lib.optionals stdenv.isDarwin \[ Cocoa WebKit \];

ldflags = \[ "-s" "-w" "-X golift.io/version.Version=${version}" \];

meta = with lib; {
description = "Extracts downloads for Radarr, Sonarr, Lidarr - Deletes extracted files after import";
homepage = "https://github.com/davidnewhall/unpackerr";
maintainers = with maintainers; \[ nullx76 \];
license = licenses.mit;
};
}
22:04:58
@kranzes:matrix.org@kranzes:matrix.org *

while the one in nixpkgs is this

{ lib, stdenv, fetchFromGitHub, buildGoModule, Cocoa, WebKit }:

buildGoModule rec {
  pname = "unpackerr";
  version = "0.11.2";

  src = fetchFromGitHub {
    owner = "davidnewhall";
    repo = "unpackerr";
    rev = "v${version}";
    sha256 = "sha256-Jxg1gaMTJ/BbL8TQfPcyt1hYnT/LcL4j+m+jSeh5QyA=";
  };

  vendorHash = "sha256-yXFIBWOF72nXmT8+OSvF1aKBhCMBloLmGTfvNbV9ir4=";

  buildInputs = lib.optionals stdenv.isDarwin [ Cocoa WebKit ];

  ldflags = [ "-s" "-w" "-X golift.io/version.Version=${version}" ];

  meta = with lib; {
    description = "Extracts downloads for Radarr, Sonarr, Lidarr - Deletes extracted files after import";
    homepage = "https://github.com/davidnewhall/unpackerr";
    maintainers = with maintainers; [ nullx76 ];
    license = licenses.mit;
  };
}
22:05:21
@kranzes:matrix.org@kranzes:matrix.orgit seems like nix-init added dependencies that aren't actually needed22:05:35
@kranzes:matrix.org@kranzes:matrix.org
[kranzes@pongo ~]$ ldd result/bin/unpackerr
	linux-vdso.so.1 (0x00007ffdc5c5e000)
	libresolv.so.2 => /nix/store/wpgrc564ys39vbyv0m50qxmq8dvhi7cc-glibc-2.37-8/lib/libresolv.so.2 (0x00007f2a5a14d000)
	libpthread.so.0 => /nix/store/wpgrc564ys39vbyv0m50qxmq8dvhi7cc-glibc-2.37-8/lib/libpthread.so.0 (0x00007f2a5a148000)
	libc.so.6 => /nix/store/wpgrc564ys39vbyv0m50qxmq8dvhi7cc-glibc-2.37-8/lib/libc.so.6 (0x00007f2a59f62000)
	/nix/store/wpgrc564ys39vbyv0m50qxmq8dvhi7cc-glibc-2.37-8/lib/ld-linux-x86-64.so.2 => /nix/store/wpgrc564ys39vbyv0m50qxmq8dvhi7cc-glibc-2.37-8/lib64/ld-linux-x86-64.so.2 (0x00007f2a5a162000)
22:05:44
@figsoda:matrix.orgfigsodahmm that looks like glfw22:05:55
@figsoda:matrix.orgfigsodaI think I will disable the glfw stuff for now22:06:05
@figsoda:matrix.orgfigsodaI saw another package recently that had false positives22:07:08
@figsoda:matrix.orgfigsoda Ilan Joselevich (Kranzes) could you take a look at https://github.com/nix-community/nix-init/pull/186? 22:07:35
@kranzes:matrix.org@kranzes:matrix.orgstill compiling 😭22:19:22
@kranzes:matrix.org@kranzes:matrix.org figsodaI think the glfw stuff is actually for this subPackage which isn't installed by default https://github.com/Unpackerr/unpackerr/tree/main/pkg/ui 22:20:53
@figsoda:matrix.orgfigsodaah that makes sense22:21:08
@kranzes:matrix.org@kranzes:matrix.org

It generated this

{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, stdenv
, darwin
, libayatana-appindicator
}:

buildGoModule rec {
  pname = "unpackerr";
  version = "0.11.2";

  src = fetchFromGitHub {
    owner = "Unpackerr";
    repo = "unpackerr";
    rev = "v${version}";
    hash = "sha256-Jxg1gaMTJ/BbL8TQfPcyt1hYnT/LcL4j+m+jSeh5QyA=";
  };

  vendorHash = "sha256-yXFIBWOF72nXmT8+OSvF1aKBhCMBloLmGTfvNbV9ir4=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = lib.optionals stdenv.isDarwin [
    darwin.apple_sdk.frameworks.Cocoa
    darwin.apple_sdk.frameworks.WebKit
  ] ++ lib.optionals stdenv.isLinux [
    libayatana-appindicator
  ];

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "Extracts downloads for Radarr, Sonarr, Lidarr, Readarr, and/or a Watch folder - Deletes extracted files after import";
    homepage = "https://github.com/Unpackerr/unpackerr";
    license = licenses.mit;
  };
}
22:22:10
@figsoda:matrix.orgfigsodathats probably also from the ui22:22:37
@kranzes:matrix.org@kranzes:matrix.org not sure about libayatana-appindicator 22:22:40
@kranzes:matrix.org@kranzes:matrix.orgyeah22:22:41
@figsoda:matrix.orgfigsodahmm the two darwin dependencies comes from the same go package22:23:32
@figsoda:matrix.orgfigsodagithub.com/getlantern/systray22:23:36
@figsoda:matrix.orgfigsodaoh22:27:13
@figsoda:matrix.orgfigsodaso it seems like this dependency is only for windows and darwin22:27:22
@figsoda:matrix.orgfigsodahttps://github.com/Unpackerr/unpackerr/blob/5e783174c381caa94132cf71b8669416481808c9/pkg/unpackerr/tray.go#L122:27:22
@figsoda:matrix.orgfigsodaidk what I can do with that, I would have to parse go files22:27:34
@kranzes:matrix.org@kranzes:matrix.orgCringe 22:49:10
@kranzes:matrix.org@kranzes:matrix.orgGo once again proving that it has one of the worst packaging ecosystem out of any other modern language 22:49:59
9 Jul 2023
@kokern:matrix.org@kokern:matrix.org changed their profile picture.22:28:39
10 Jul 2023
@blaggacao:matrix.org@blaggacao:matrix.org

Is there a mapper for nixpkgs moves like this?

 error: poetry was promoted to a top-level attribute, use poetry-core to build Python packages
01:21:56
@blaggacao:matrix.org@blaggacao:matrix.orgNot sure if this should be a nix-init concern, though.01:22:07

Show newer messages


Back to Room ListRoom Version: 10