mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-10-04 04:33:27 +00:00
parent
158f4810c8
commit
f0809ce877
4 changed files with 70 additions and 0 deletions
26
nix/package.nix
Normal file
26
nix/package.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue