drone{,-oss}: migrate to pkgs/by-name (#507040)

This commit is contained in:
Yohann Boniface
2026-04-06 03:00:41 +00:00
committed by GitHub
3 changed files with 9 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
{
drone,
}:
drone.override { enableUnfree = false; }
@@ -5,15 +5,15 @@
enableUnfree ? true,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "drone.io${lib.optionalString (!enableUnfree) "-oss"}";
version = "2.28.1";
src = fetchFromGitHub {
owner = "harness";
repo = "drone";
rev = "v${version}";
sha256 = "sha256-p4fsQu46HX8Gc2W/RCvvjI1KZGcN2S/3ZOLty0MHmfg=";
tag = "v${finalAttrs.version}";
hash = "sha256-p4fsQu46HX8Gc2W/RCvvjI1KZGcN2S/3ZOLty0MHmfg=";
};
vendorHash = "sha256-6a4Xdp8lcPq+GPewQmEPzr9hXjSrqHR7kqw7pqHzjXE=";
@@ -35,4 +35,4 @@ buildGoModule rec {
];
license = with lib.licenses; if enableUnfree then unfreeRedistributable else asl20;
};
}
})
-5
View File
@@ -2246,11 +2246,6 @@ with pkgs;
diffutils = callPackage ../tools/text/diffutils { };
drone = callPackage ../development/tools/continuous-integration/drone { };
drone-oss = callPackage ../development/tools/continuous-integration/drone {
enableUnfree = false;
};
dsview = libsForQt5.callPackage ../applications/science/electronics/dsview { };
inherit (import ../build-support/dlang/dub-support.nix { inherit callPackage; })