mirror of
https://github.com/NotAShelf/microfetch.git
synced 2024-11-25 16:36:45 +00:00
27 lines
612 B
Nix
27 lines
612 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
}: let
|
|
toml = (lib.importTOML ../Cargo.toml).package;
|
|
pname = toml.name;
|
|
inherit (toml) version;
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
inherit pname version;
|
|
|
|
src = builtins.path {
|
|
name = "${pname}-${version}";
|
|
path = ../.;
|
|
};
|
|
|
|
cargoLock.lockFile = ../Cargo.lock;
|
|
|
|
meta = {
|
|
description = "A microscopic fetch script in Rust, for NixOS systems";
|
|
homepage = "https://github.com/NotAShelf/microfetch";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [NotAShelf];
|
|
mainProgram = "microfetch";
|
|
};
|
|
}
|