-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
Problem
was running my derivation to build a rust project fetched from github:
{ pkgs
, lib
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "paddler";
version = "1.2.1";
src = fetchFromGitHub {
owner = "distantmagic";
repo = "paddler";
rev = "v${version}";
sha256 = "sha256-gWnahj1A+1XUQIQI0JH1u7K5euYQ01d9qMm99Vjaeg=";
};
cargoSha256 = "sha256-9atn5qy8Dy4PGiUoHFhg+TVGUr71fiah40TJbBNeEy4=";
nativeBuildInputs = [
pkgs.cmake
pkgs.openssl
pkgs.pkg-config
];
# buildInputs = [ pkgs.openssl ];
meta = {
description = "Stateful load balancer custom-tailored for llama.cpp";
homepage = "https://github.com/distantmagic/paddler";
license = lib.licenses.unlicense;
maintainers = [];
};
}
and got the error:
error: cannot evaluate a function that has an argument without a value ('pkgs')
Nix attempted to evaluate a function as a top level expression; in
this case it must have its arguments supplied either by default
values, or passed explicitly with '--arg' or '--argstr'. See
https://nixos.org/manual/nix/stable/language/constructs.html#functions.
at /home/debian/home/programming/intentt/paddler/default.nix:1:3:
1| { pkgs
| ^
2| , lib
but this link is broken: https://nixos.org/manual/nix/stable/language/constructs.html#functions.