mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
packages: refactor cargo rust packages
This commit is contained in:
parent
318ca4fbc6
commit
b9639eb49c
4 changed files with 42 additions and 34 deletions
|
|
@ -8,6 +8,7 @@
|
|||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: let
|
||||
cargoToml = fromTOML (builtins.readFile (finalAttrs.src + "/Cargo.toml"));
|
||||
cargoLock = finalAttrs.src + "/Cargo.lock";
|
||||
in {
|
||||
pname = "emoji-picker";
|
||||
version = cargoToml.package.version;
|
||||
|
|
@ -19,7 +20,7 @@ in {
|
|||
hash = "sha256-ETZRqyQ5lzYA6NGOXLnxfpwb4qMMC1l7s5XA8H5s9Jw=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-rJKFRWaqulnan2jtt0erj5cypSBe0Z5PiNcOXd3HCZs=";
|
||||
cargoLock.lockFile = cargoLock;
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue