improved derrivation to be idomatic

This commit is contained in:
Jermeiah S 2025-06-28 21:03:02 -04:00
parent a2dee988be
commit a589331d4b
No known key found for this signature in database

View file

@ -1,11 +1,23 @@
{ pkgs ? import <nixpkgs> { }, lib }:
{
unrar,
xz,
pkg-config,
rustPlatform,
lib,
}:
pkgs.rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage {
pname = "sk_extract";
version = "0.1.0";
cargoLock.lockFile = ../Cargo.lock;
src = pkgs.lib.cleanSource ../.;
buildInputs = [ pkgs.xz pkgs.unrar ];
nativeBuildInputs = [ pkgs.xz pkgs.pkg-config ];
# doCheck = false;
src = lib.cleanSource ../.;
buildInputs = [
xz
unrar
];
nativeBuildInputs = [
xz
pkg-config
];
doCheck = false;
}