mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
ocf-resource-agents: fix pos
attribute to define source location
Without the change commands like $ nix edit -f. ocf-resource-agents do not point to a file.
This commit is contained in:
parent
7f90b56ea1
commit
35e16bd907
@ -60,7 +60,12 @@ 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;
|
||||
} ''
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user