Commit 7ed285ec authored by figsoda's avatar figsoda
Browse files

eidolon: replace patch with Cargo.lock

https://github.com/NixOS/nixpkgs/pull/217084 plans to migrate Rust packages to use `importCargoLock`, but the migration script cannot handle `cargoPatches`: https://github.com/NixOS/nixpkgs/pull/217084#discussion_r1111253151
parent dd353758
Loading
Loading
Loading
Loading
+2087 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −2726

File deleted.

Preview size limit exceeded, changes collapsed.

+7 −7
Original line number Diff line number Diff line
@@ -16,22 +16,22 @@ rustPlatform.buildRustPackage rec {
    rev = version;
    sha256 = "sha256-Ofc3i+iMmbUgY3bomUk4rM3bEQInTV3rIPz3m0yZw/o=";
  };
  cargoPatches = [ ./cargo-lock.patch ];

  cargoSha256 = "sha256-1d+Wgx6tBS1Rb8WpVrD/ja0zXdoE2Q9ZlUS/3p8OYWM=";
  cargoLock = {
    lockFile = ./Cargo.lock;
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ openssl ];

  OPENSSL_NO_VENDOR = 1;
  OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
  OPENSSL_INCLUDE_DIR = "${openssl.dev}/include";
  OPENSSL_DIR="${lib.getDev openssl}";
  postPatch = ''
    ln -sf ${./Cargo.lock} Cargo.lock
  '';

  meta = with lib; {
    description = "A single TUI-based registry for drm-free, wine and steam games on linux, accessed through a rofi launch menu";
    homepage = "https://github.com/nicohman/eidolon";
    license = licenses.gpl3;
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ _0x4A6F ];
    platforms = platforms.linux;
  };