Conversation
- 6.8 kernel support added - aligned to Nix standard build environment - test added - redundant installPhase and postFixup definitions removed Signed-off-by: birkb <[email protected]>
| src = fetchurl { | ||
| url = "https://pkg.linbit.com//downloads/drbd/9/drbd-${version}.tar.gz"; | ||
| hash = "sha256-LqK1lPucab7wKvcB4VKGdvBIq+K9XtuO2m0DP5XtK3M="; | ||
| url = "https://pkg.linbit.com//downloads/drbd/9/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; |
There was a problem hiding this comment.
| url = "https://pkg.linbit.com//downloads/drbd/9/${finalAttrs.pname}-${finalAttrs.version}.tar.gz"; | |
| url = "https://pkg.linbit.com//downloads/drbd/9/drbd-${finalAttrs.version}.tar.gz"; |
finalAttrs.pname is in many usecases wrong, as when we would append something like headless to pname, then the download URL would be broken
There was a problem hiding this comment.
Thanks for the hint. What would be the correct variable and do you maybe have a link to the related documentation?
There was a problem hiding this comment.
Don't use pname in URLs, just use the string literal.
| @@ -0,0 +1,19 @@ | |||
| import ./make-test-python.nix ({ lib, pkgs, ... }: { | |||
| name = "drbd-driver"; | |||
| meta.maintainers = with pkgs.lib.maintainers; [ birkb ]; | |||
There was a problem hiding this comment.
| meta.maintainers = with pkgs.lib.maintainers; [ birkb ]; | |
| meta.maintainers = with lib.maintainers; [ birkb ]; |
eclairevoyant
left a comment
There was a problem hiding this comment.
as mentioned earlier - we should never use finalAttrs.pname in a url
JohnRTitor
left a comment
There was a problem hiding this comment.
Perhaps we could fetch from the GitHub repo instead?
diff --git a/pkgs/os-specific/linux/drbd/driver.nix b/pkgs/os-specific/linux/drbd/driver.nix
index c2e222ad2f1f..8f4b84800f72 100644
--- a/pkgs/os-specific/linux/drbd/driver.nix
+++ b/pkgs/os-specific/linux/drbd/driver.nix
@@ -1,12 +1,14 @@
-{ stdenv, lib, fetchurl, kernel, nixosTests, flex, coccinelle, python3 }:
+{ stdenv, lib, fetchFromGitHub, kernel, nixosTests, flex, coccinelle, python3 }:
stdenv.mkDerivation (finalAttrs: {
pname = "drbd";
- version = "9.2.9";
+ version = "9.2.10";
- src = fetchurl {
- url = "https://pkg.linbit.com//downloads/drbd/9/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
- hash = "sha256-MLG0hGvAjjkNxhszbpnb8fkzWUQC1zPhkeOaU0V5x3g=";
+ src = fetchFromGitHub {
+ owner = "LINBIT";
+ repo = "drbd";
+ rev = "drbd-${finalAttrs.version}";
+ hash = "sha256-O77nVnbk0rSS2vI/+jG1jgDIiFmttGFNUgnw3x6WqPk=";
};
hardeningDisable = [ "pic" ];
|
Signed-off-by: birkb <[email protected]>
|
closed in favor of the PR that updates straight to 9.2.12 |
Description of changes
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.