diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-03-08 09:02:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 09:02:42 -0500 |
commit | d2429ffaa873bb7dc0001ab6508de755962f3cde (patch) | |
tree | 6c70c139e9b0499b781bbd3c845b4340b63e2ac0 /pkgs/os-specific/linux/ocf-resource-agents | |
parent | c30322be7a18bf16e0841b58af9bc3e7df8ef518 (diff) | |
parent | 4ebe4721a6220a6f6365787089e2149589b9de27 (diff) |
Merge pull request #287051 from trofi/ocf-resource-agents-fix-meta
ocf-resource-agents: fix `pos` attribute to define source location
Diffstat (limited to 'pkgs/os-specific/linux/ocf-resource-agents')
-rw-r--r-- | pkgs/os-specific/linux/ocf-resource-agents/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/ocf-resource-agents/default.nix b/pkgs/os-specific/linux/ocf-resource-agents/default.nix index 0e63774526706..6c0157bb6cbb1 100644 --- a/pkgs/os-specific/linux/ocf-resource-agents/default.nix +++ b/pkgs/os-specific/linux/ocf-resource-agents/default.nix @@ -71,7 +71,17 @@ in # This combines together OCF definitions from other derivations. # https://github.com/ClusterLabs/resource-agents/blob/master/doc/dev-guides/ra-dev-guide.asc -runCommand "ocf-resource-agents" {} '' +runCommand "ocf-resource-agents" { + # Fix derivation location so things like + # $ nix edit -f. ocf-resource-agents + # just work. + pos = builtins.unsafeGetAttrPos "version" resource-agentsForOCF; + + # Useful to build and undate inputs individually: + passthru.inputs = { + inherit resource-agentsForOCF drbdForOCF pacemakerForOCF; + }; +} '' mkdir -p $out/usr/lib/ocf ${lndir}/bin/lndir -silent "${resource-agentsForOCF}/lib/ocf/" $out/usr/lib/ocf ${lndir}/bin/lndir -silent "${drbdForOCF}/usr/lib/ocf/" $out/usr/lib/ocf |