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
This commit is contained in:
figsoda 2023-02-25 20:34:02 -05:00
parent dd3537583d
commit 7ed285ecc1
3 changed files with 2094 additions and 2733 deletions

2087
pkgs/games/eidolon/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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;
};