Closed Freed-Wu closed 1 year ago
pname
is nothing more than an attribute that reflects the key of the defined package, and it's up to the user to use it or not. If you would like to generate something, you can use passthru = { ... }
.
if user
passthru = { pname = "qq-nt" }
it will
qq-nt-x86_64-linux = {
pname = "qq-nt-x86_64-linux";
version = "3.1.2_12912";
src = fetchurl {
url = "https://dldir1.qq.com/qqfile/qq/QQNT/80d33f88/linuxqq_3.1.2-12912_amd64.deb";
sha256 = "sha256-F+zIHqYWKiCHYNJZ5hRw0rzltizjuqhVxbpzQGagoZ0=";
};
pname = "qq-nt";
};
Why not let passthru
override pname
?
Can it allow users customize pname? That is:
will generate